home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: Tripwire.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file tripwire-1.0/, mode 740 , uid 216 , gid 216 , size 0 , seconds 5275566447
| default
| |
98%
| file
| data
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 00 00 00 |tripwire|-1.0/...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 34 30 20 00 20 20 20 32 |.... 7|40 . 2|
|00000070| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 32 37 35 35 36 36 | 0 | 5275566|
|00000090| 34 34 37 20 20 20 36 32 | 32 31 00 20 00 00 00 00 |447 62|21. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 61 75 78 |tripwire|-1.0/aux|
|00000210| 2f 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 37 | 34 30 20 00 20 20 20 32 |.... 7|40 . 2|
|00000270| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00000280| 20 20 20 20 20 20 30 20 | 20 35 32 37 35 35 36 36 | 0 | 5275566|
|00000290| 34 35 33 20 20 20 37 30 | 31 33 00 20 00 00 00 00 |453 70|13. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 61 75 78 |tripwire|-1.0/aux|
|00000410| 2f 74 79 70 65 73 2e 63 | 00 00 00 00 00 00 00 00 |/types.c|........|
|00000420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 20 32 |.... 6|00 . 2|
|00000470| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00000480| 20 20 20 32 36 31 33 20 | 20 35 32 37 35 35 36 36 | 2613 | 5275566|
|00000490| 32 37 34 20 20 31 30 34 | 31 31 00 20 00 00 00 00 |274 104|11. ....|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|00000610| 74 69 63 20 63 68 61 72 | 20 72 63 73 69 64 5b 5d |tic char| rcsid[]|
|00000620| 20 3d 20 22 24 49 64 3a | 20 74 79 70 65 73 2e 63 | = "$Id:| types.c|
|00000630| 2c 76 20 31 2e 32 20 39 | 32 2f 31 31 2f 30 33 20 |,v 1.2 9|2/11/03 |
|00000640| 30 32 3a 34 38 3a 33 33 | 20 67 65 6e 65 6b 20 45 |02:48:33| genek E|
|00000650| 78 70 20 24 22 3b 0a 23 | 65 6e 64 69 66 0a 0a 23 |xp $";.#|endif..#|
|00000660| 69 6e 63 6c 75 64 65 20 | 22 2e 2e 2f 69 6e 63 6c |include |"../incl|
|00000670| 75 64 65 2f 63 6f 6e 66 | 69 67 2e 68 22 0a 23 69 |ude/conf|ig.h".#i|
|00000680| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|00000690| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 79 73 2f 74 |.#includ|e <sys/t|
|000006a0| 79 70 65 73 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |ypes.h>.|#include|
|000006b0| 20 3c 73 79 73 2f 73 74 | 61 74 2e 68 3e 0a 23 69 | <sys/st|at.h>.#i|
|000006c0| 66 64 65 66 20 53 54 44 | 4c 49 42 48 0a 23 69 6e |fdef STD|LIBH.#in|
|000006d0| 63 6c 75 64 65 20 3c 73 | 74 64 6c 69 62 2e 68 3e |clude <s|tdlib.h>|
|000006e0| 0a 23 65 6e 64 69 66 0a | 0a 73 74 61 74 69 63 20 |.#endif.|.static |
|000006f0| 76 6f 69 64 0a 75 73 61 | 67 65 28 29 0a 7b 0a 20 |void.usa|ge().{. |
|00000700| 20 20 20 66 70 75 74 73 | 28 22 74 79 70 65 73 3a | fputs|("types:|
|00000710| 20 75 73 61 67 65 3a 20 | 74 79 70 65 6e 61 6d 65 | usage: |typename|
|00000720| 5c 6e 22 2c 20 73 74 64 | 65 72 72 29 3b 0a 20 20 |\n", std|err);. |
|00000730| 20 20 65 78 69 74 28 31 | 29 3b 0a 7d 0a 0a 63 68 | exit(1|);.}..ch|
|00000740| 61 72 20 2a 70 63 3b 0a | 69 6e 74 20 69 73 75 6e |ar *pc;.|int isun|
|00000750| 73 69 67 6e 65 64 3b 0a | 0a 6d 61 69 6e 28 61 72 |signed;.|.main(ar|
|00000760| 67 63 2c 20 61 72 67 76 | 29 0a 20 20 20 20 69 6e |gc, argv|). in|
|00000770| 74 20 61 72 67 63 3b 0a | 20 20 20 20 63 68 61 72 |t argc;.| char|
|00000780| 20 2a 61 72 67 76 5b 5d | 3b 0a 7b 0a 20 20 20 20 | *argv[]|;.{. |
|00000790| 73 74 72 75 63 74 20 73 | 74 61 74 20 73 74 61 74 |struct s|tat stat|
|000007a0| 62 75 66 3b 0a 20 20 20 | 20 69 6e 74 20 73 69 7a |buf;. | int siz|
|000007b0| 65 3b 0a 0a 20 20 20 20 | 70 63 20 3d 20 61 72 67 |e;.. |pc = arg|
|000007c0| 76 5b 31 5d 3b 0a 0a 20 | 20 20 20 69 66 20 28 61 |v[1];.. | if (a|
|000007d0| 72 67 63 20 3c 20 32 29 | 0a 09 75 73 61 67 65 28 |rgc < 2)|..usage(|
|000007e0| 29 3b 0a 0a 20 20 20 20 | 69 66 20 28 73 74 72 63 |);.. |if (strc|
|000007f0| 6d 70 28 70 63 2c 20 22 | 6d 6f 64 65 5f 74 22 29 |mp(pc, "|mode_t")|
|00000800| 20 3d 3d 20 30 29 20 7b | 0a 09 69 73 75 6e 73 69 | == 0) {|..isunsi|
|00000810| 67 6e 65 64 20 3d 20 31 | 3b 0a 09 74 79 70 65 69 |gned = 1|;..typei|
|00000820| 73 28 73 69 7a 65 6f 66 | 28 73 74 61 74 62 75 66 |s(sizeof|(statbuf|
|00000830| 2e 73 74 5f 6d 6f 64 65 | 29 29 3b 0a 20 20 20 20 |.st_mode|));. |
|00000840| 7d 0a 20 20 20 20 65 6c | 73 65 20 69 66 20 28 73 |}. el|se if (s|
|00000850| 74 72 63 6d 70 28 70 63 | 2c 20 22 69 6e 6f 5f 74 |trcmp(pc|, "ino_t|
|00000860| 22 29 20 3d 3d 20 30 29 | 20 7b 0a 09 69 73 75 6e |") == 0)| {..isun|
|00000870| 73 69 67 6e 65 64 20 3d | 20 31 3b 0a 09 74 79 70 |signed =| 1;..typ|
|00000880| 65 69 73 28 73 69 7a 65 | 6f 66 28 73 74 61 74 62 |eis(size|of(statb|
|00000890| 75 66 2e 73 74 5f 69 6e | 6f 29 29 3b 0a 20 20 20 |uf.st_in|o));. |
|000008a0| 20 7d 0a 20 20 20 20 65 | 6c 73 65 20 69 66 20 28 | }. e|lse if (|
|000008b0| 73 74 72 63 6d 70 28 70 | 63 2c 20 22 6e 6c 69 6e |strcmp(p|c, "nlin|
|000008c0| 6b 5f 74 22 29 20 3d 3d | 20 30 29 20 7b 0a 09 69 |k_t") ==| 0) {..i|
|000008d0| 73 75 6e 73 69 67 6e 65 | 64 20 3d 20 31 3b 0a 09 |sunsigne|d = 1;..|
|000008e0| 74 79 70 65 69 73 28 73 | 69 7a 65 6f 66 28 73 74 |typeis(s|izeof(st|
|000008f0| 61 74 62 75 66 2e 73 74 | 5f 6e 6c 69 6e 6b 29 29 |atbuf.st|_nlink))|
|00000900| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 65 6c 73 65 |;. }.| else|
|00000910| 20 69 66 20 28 73 74 72 | 63 6d 70 28 70 63 2c 20 | if (str|cmp(pc, |
|00000920| 22 75 69 64 5f 74 22 29 | 20 3d 3d 20 30 29 20 7b |"uid_t")| == 0) {|
|00000930| 0a 09 69 73 75 6e 73 69 | 67 6e 65 64 20 3d 20 30 |..isunsi|gned = 0|
|00000940| 3b 0a 09 74 79 70 65 69 | 73 28 73 69 7a 65 6f 66 |;..typei|s(sizeof|
|00000950| 28 73 74 61 74 62 75 66 | 2e 73 74 5f 75 69 64 29 |(statbuf|.st_uid)|
|00000960| 29 3b 0a 20 20 20 20 7d | 0a 20 20 20 20 65 6c 73 |);. }|. els|
|00000970| 65 20 69 66 20 28 73 74 | 72 63 6d 70 28 70 63 2c |e if (st|rcmp(pc,|
|00000980| 20 22 67 69 64 5f 74 22 | 29 20 3d 3d 20 30 29 20 | "gid_t"|) == 0) |
|00000990| 7b 0a 09 69 73 75 6e 73 | 69 67 6e 65 64 20 3d 20 |{..isuns|igned = |
|000009a0| 30 3b 0a 09 74 79 70 65 | 69 73 28 73 69 7a 65 6f |0;..type|is(sizeo|
|000009b0| 66 28 73 74 61 74 62 75 | 66 2e 73 74 5f 67 69 64 |f(statbu|f.st_gid|
|000009c0| 29 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 65 6c |));. |}. el|
|000009d0| 73 65 20 69 66 20 28 73 | 74 72 63 6d 70 28 70 63 |se if (s|trcmp(pc|
|000009e0| 2c 20 22 6f 66 66 5f 74 | 22 29 20 3d 3d 20 30 29 |, "off_t|") == 0)|
|000009f0| 20 7b 0a 09 69 73 75 6e | 73 69 67 6e 65 64 20 3d | {..isun|signed =|
|00000a00| 20 31 3b 0a 09 74 79 70 | 65 69 73 28 73 69 7a 65 | 1;..typ|eis(size|
|00000a10| 6f 66 28 73 74 61 74 62 | 75 66 2e 73 74 5f 73 69 |of(statb|uf.st_si|
|00000a20| 7a 65 29 29 3b 0a 20 20 | 20 20 7d 0a 0a 20 20 20 |ze));. | }.. |
|00000a30| 20 65 78 69 74 28 30 29 | 3b 0a 0a 7d 0a 0a 74 79 | exit(0)|;..}..ty|
|00000a40| 70 65 69 73 28 69 29 0a | 20 20 20 20 69 6e 74 20 |peis(i).| int |
|00000a50| 69 3b 0a 7b 0a 20 20 20 | 20 69 6e 74 20 73 68 6f |i;.{. | int sho|
|00000a60| 72 74 6c 65 6e 20 3d 20 | 73 69 7a 65 6f 66 28 75 |rtlen = |sizeof(u|
|00000a70| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 29 3b 0a |nsigned |short);.|
|00000a80| 20 20 20 20 69 6e 74 20 | 6c 6f 6e 67 6c 65 6e 20 | int |longlen |
|00000a90| 3d 20 73 69 7a 65 6f 66 | 28 75 6e 73 69 67 6e 65 |= sizeof|(unsigne|
|00000aa0| 64 20 6c 6f 6e 67 29 3b | 0a 20 20 20 20 63 68 61 |d long);|. cha|
|00000ab0| 72 20 73 69 67 6e 5b 36 | 34 5d 3b 0a 0a 20 20 20 |r sign[6|4];.. |
|00000ac0| 20 69 66 20 28 69 73 75 | 6e 73 69 67 6e 65 64 29 | if (isu|nsigned)|
|00000ad0| 0a 09 73 74 72 63 70 79 | 28 73 69 67 6e 2c 20 22 |..strcpy|(sign, "|
|00000ae0| 75 6e 73 69 67 6e 65 64 | 22 29 3b 0a 20 20 20 20 |unsigned|");. |
|00000af0| 65 6c 73 65 0a 09 73 74 | 72 63 70 79 28 73 69 67 |else..st|rcpy(sig|
|00000b00| 6e 2c 20 22 73 69 67 6e | 65 64 22 29 3b 0a 0a 0a |n, "sign|ed");...|
|00000b10| 20 20 20 20 69 66 20 28 | 69 20 3d 3d 20 73 68 6f | if (|i == sho|
|00000b20| 72 74 6c 65 6e 29 0a 09 | 70 72 69 6e 74 66 28 22 |rtlen)..|printf("|
|00000b30| 74 79 70 65 64 65 66 20 | 25 73 20 73 68 6f 72 74 |typedef |%s short|
|00000b40| 20 25 73 3b 5c 6e 22 2c | 20 73 69 67 6e 2c 20 70 | %s;\n",| sign, p|
|00000b50| 63 29 3b 0a 20 20 20 20 | 65 6c 73 65 0a 09 70 72 |c);. |else..pr|
|00000b60| 69 6e 74 66 28 22 74 79 | 70 65 64 65 66 20 25 73 |intf("ty|pedef %s|
|00000b70| 20 6c 6f 6e 67 20 25 73 | 3b 5c 6e 22 2c 20 73 69 | long %s|;\n", si|
|00000b80| 67 6e 2c 20 70 63 29 3b | 0a 7d 0a 00 00 00 00 00 |gn, pc);|.}......|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 61 75 78 |tripwire|-1.0/aux|
|00000c10| 2f 6e 74 6f 68 6c 2e 68 | 00 00 00 00 00 00 00 00 |/ntohl.h|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 20 32 |.... 6|00 . 2|
|00000c70| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00000c80| 20 20 20 31 33 34 35 20 | 20 35 32 37 35 35 36 36 | 1345 | 5275566|
|00000c90| 32 37 35 20 20 31 30 34 | 30 30 00 20 00 00 00 00 |275 104|00. ....|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 23 69 66 20 42 59 54 45 | 4f 52 44 45 52 20 3d 3d |#if BYTE|ORDER ==|
|00000e10| 20 30 78 34 33 32 31 0a | 0a 23 64 65 66 69 6e 65 | 0x4321.|.#define|
|00000e20| 20 6e 74 6f 68 6c 28 78 | 29 0a 23 64 65 66 69 6e | ntohl(x|).#defin|
|00000e30| 65 20 68 74 6f 6e 6c 28 | 78 29 0a 23 65 6c 73 65 |e htonl(|x).#else|
|00000e40| 0a 23 69 66 20 28 28 42 | 59 54 45 4f 52 44 45 52 |.#if ((B|YTEORDER|
|00000e50| 20 2d 20 30 78 31 31 31 | 31 29 20 26 20 30 78 34 | - 0x111|1) & 0x4|
|00000e60| 34 34 29 20 7c 7c 20 21 | 28 42 59 54 45 4f 52 44 |44) || !|(BYTEORD|
|00000e70| 45 52 20 26 20 30 78 66 | 29 0a 23 64 65 66 69 6e |ER & 0xf|).#defin|
|00000e80| 65 20 6e 74 6f 68 6c 28 | 78 29 20 20 20 20 66 61 |e ntohl(|x) fa|
|00000e90| 74 61 6c 28 22 55 6e 6b | 6e 6f 77 6e 20 42 59 54 |tal("Unk|nown BYT|
|00000ea0| 45 4f 52 44 45 52 5c 6e | 22 29 0a 23 64 65 66 69 |EORDER\n|").#defi|
|00000eb0| 6e 65 20 68 74 6f 6e 6c | 28 78 29 20 20 20 20 66 |ne htonl|(x) f|
|00000ec0| 61 74 61 6c 28 22 55 6e | 6b 6e 6f 77 6e 20 42 59 |atal("Un|known BY|
|00000ed0| 54 45 4f 52 44 45 52 5c | 6e 22 29 0a 23 65 6c 73 |TEORDER\|n").#els|
|00000ee0| 65 0a 23 64 65 66 69 6e | 65 20 42 59 54 45 52 45 |e.#defin|e BYTERE|
|00000ef0| 56 45 52 53 45 28 78 29 | 20 20 7b 72 65 67 69 73 |VERSE(x)| {regis|
|00000f00| 74 65 72 20 75 6e 73 69 | 67 6e 65 64 20 63 68 61 |ter unsi|gned cha|
|00000f10| 72 20 5f 5f 74 2c 20 5c | 0a 09 09 2a 5f 5f 63 20 |r __t, \|...*__c |
|00000f20| 3d 20 28 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |= (unsig|ned char|
|00000f30| 20 2a 29 20 26 28 78 29 | 3b 20 5c 0a 09 5f 5f 74 | *) &(x)|; \..__t|
|00000f40| 20 3d 20 5f 5f 63 5b 33 | 5d 3b 20 5f 5f 63 5b 33 | = __c[3|]; __c[3|
|00000f50| 5d 20 3d 20 2a 5f 5f 63 | 3b 20 2a 5f 5f 63 2b 2b |] = *__c|; *__c++|
|00000f60| 20 3d 20 5f 5f 74 3b 20 | 5c 0a 09 5f 5f 74 20 3d | = __t; |\..__t =|
|00000f70| 20 2a 5f 5f 63 3b 20 2a | 5f 5f 63 20 3d 20 5f 5f | *__c; *|__c = __|
|00000f80| 63 5b 31 5d 3b 20 2a 2b | 2b 5f 5f 63 20 3d 20 5f |c[1]; *+|+__c = _|
|00000f90| 5f 74 3b 20 7d 0a 23 64 | 65 66 69 6e 65 20 6e 74 |_t; }.#d|efine nt|
|00000fa0| 6f 68 6c 28 78 29 20 42 | 59 54 45 52 45 56 45 52 |ohl(x) B|YTEREVER|
|00000fb0| 53 45 28 78 29 0a 23 64 | 65 66 69 6e 65 20 68 74 |SE(x).#d|efine ht|
|00000fc0| 6f 6e 6c 28 78 29 20 42 | 59 54 45 52 45 56 45 52 |onl(x) B|YTEREVER|
|00000fd0| 53 45 28 78 29 0a 23 65 | 6e 64 69 66 0a 23 65 6e |SE(x).#e|ndif.#en|
|00000fe0| 64 69 66 0a 0a 0a 2f 2a | 20 24 49 64 3a 20 6e 74 |dif.../*| $Id: nt|
|00000ff0| 6f 68 6c 2e 68 2c 76 20 | 31 2e 32 20 39 32 2f 31 |ohl.h,v |1.2 92/1|
|00001000| 31 2f 30 33 20 30 32 3a | 34 38 3a 33 31 20 67 65 |1/03 02:|48:31 ge|
|00001010| 6e 65 6b 20 45 78 70 20 | 24 0a 0a 54 68 65 6e 2c |nek Exp |$..Then,|
|00001020| 20 77 68 65 72 65 76 65 | 72 20 79 6f 75 20 75 73 | whereve|r you us|
|00001030| 65 20 74 68 65 20 76 61 | 6c 75 65 2c 20 72 65 70 |e the va|lue, rep|
|00001040| 6c 61 63 65 3a 0a 0a 69 | 20 3d 20 6e 74 6f 68 6c |lace:..i| = ntohl|
|00001050| 28 6a 29 3b 0a 20 2d 77 | 69 74 68 2d 0a 69 20 3d |(j);. -w|ith-.i =|
|00001060| 20 6a 3b 0a 6e 74 6f 68 | 6c 28 69 29 3b 0a 0a 54 | j;.ntoh|l(i);..T|
|00001070| 68 65 20 72 65 73 75 6c | 74 69 6e 67 20 63 6f 64 |he resul|ting cod|
|00001080| 65 20 77 69 6c 6c 20 62 | 65 20 66 61 73 74 65 72 |e will b|e faster|
|00001090| 20 74 68 61 74 20 75 73 | 69 6e 67 20 61 20 73 75 | that us|ing a su|
|000010a0| 62 72 6f 75 74 69 6e 65 | 2c 0a 20 65 73 70 65 63 |broutine|,. espec|
|000010b0| 69 61 6c 6c 79 20 69 66 | 20 74 68 65 73 65 20 72 |ially if| these r|
|000010c0| 6f 75 74 69 6e 65 73 20 | 61 72 65 20 63 61 6c 6c |outines |are call|
|000010d0| 65 64 20 6f 66 74 65 6e | 2e 0a 0a 2d 2d 73 70 61 |ed often|...--spa|
|000010e0| 66 0a 2a 2f 0a 73 28 73 | 69 7a 65 6f 66 28 73 74 |f.*/.s(s|izeof(st|
|000010f0| 61 74 62 75 66 2e 73 74 | 5f 6e 6c 69 6e 6b 29 29 |atbuf.st|_nlink))|
|00001100| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 65 6c 73 65 |;. }.| else|
|00001110| 20 69 66 20 28 73 74 72 | 63 6d 70 28 70 63 2c 20 | if (str|cmp(pc, |
|00001120| 22 75 69 64 5f 74 22 29 | 20 3d 3d 20 30 29 20 7b |"uid_t")| == 0) {|
|00001130| 0a 09 69 73 75 6e 73 69 | 67 6e 65 64 20 3d 20 30 |..isunsi|gned = 0|
|00001140| 3b 0a 09 74 79 70 65 69 | 73 28 73 69 7a 65 6f 66 |;..typei|s(sizeof|
|00001150| 28 73 74 61 74 62 75 66 | 2e 73 74 5f 75 69 64 29 |(statbuf|.st_uid)|
|00001160| 29 3b 0a 20 20 20 20 7d | 0a 20 20 20 20 65 6c 73 |);. }|. els|
|00001170| 65 20 69 66 20 28 73 74 | 72 63 6d 70 28 70 63 2c |e if (st|rcmp(pc,|
|00001180| 20 22 67 69 64 5f 74 22 | 29 20 3d 3d 20 30 29 20 | "gid_t"|) == 0) |
|00001190| 7b 0a 09 69 73 75 6e 73 | 69 67 6e 65 64 20 3d 20 |{..isuns|igned = |
|000011a0| 30 3b 0a 09 74 79 70 65 | 69 73 28 73 69 7a 65 6f |0;..type|is(sizeo|
|000011b0| 66 28 73 74 61 74 62 75 | 66 2e 73 74 5f 67 69 64 |f(statbu|f.st_gid|
|000011c0| 29 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 65 6c |));. |}. el|
|000011d0| 73 65 20 69 66 20 28 73 | 74 72 63 6d 70 28 70 63 |se if (s|trcmp(pc|
|000011e0| 2c 20 22 6f 66 66 5f 74 | 22 29 20 3d 3d 20 30 29 |, "off_t|") == 0)|
|000011f0| 20 7b 0a 09 69 73 75 6e | 73 69 67 6e 65 64 20 3d | {..isun|signed =|
|00001200| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 61 75 78 |tripwire|-1.0/aux|
|00001210| 2f 4d 61 6b 65 66 69 6c | 65 00 00 00 00 00 00 00 |/Makefil|e.......|
|00001220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001260| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 20 32 |.... 6|00 . 2|
|00001270| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00001280| 20 20 20 20 37 35 34 20 | 20 35 32 37 35 35 36 36 | 754 | 5275566|
|00001290| 32 37 37 20 20 31 30 35 | 33 30 00 20 00 00 00 00 |277 105|30. ....|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 23 20 24 49 64 3a 20 4d | 61 6b 65 66 69 6c 65 2c |# $Id: M|akefile,|
|00001410| 76 20 31 2e 31 2e 31 2e | 32 20 39 32 2f 31 31 2f |v 1.1.1.|2 92/11/|
|00001420| 30 32 20 31 38 3a 31 36 | 3a 33 34 20 67 65 6e 65 |02 18:16|:34 gene|
|00001430| 6b 20 45 78 70 20 24 0a | 23 0a 23 20 09 54 72 69 |k Exp $.|#.# .Tri|
|00001440| 70 77 69 72 65 20 61 75 | 78 20 70 72 6f 67 72 61 |pwire au|x progra|
|00001450| 6d 20 62 75 69 6c 64 0a | 23 0a 0a 42 4f 52 44 45 |m build.|#..BORDE|
|00001460| 52 09 3d 20 2e 2e 2f 69 | 6e 63 6c 75 64 65 2f 62 |R.= ../i|nclude/b|
|00001470| 79 74 65 6f 72 64 65 72 | 2e 68 0a 49 4e 4f 44 45 |yteorder|.h.INODE|
|00001480| 09 3d 20 2e 2e 2f 69 6e | 63 6c 75 64 65 2f 69 6e |.= ../in|clude/in|
|00001490| 6f 64 65 2e 68 0a 0a 61 | 6c 6c 3a 09 24 28 42 4f |ode.h..a|ll:.$(BO|
|000014a0| 52 44 45 52 29 20 24 28 | 49 4e 4f 44 45 29 0a 0a |RDER) $(|INODE)..|
|000014b0| 24 28 42 4f 52 44 45 52 | 29 3a 20 62 79 74 65 6f |$(BORDER|): byteo|
|000014c0| 72 64 65 72 2e 63 20 6e | 74 6f 68 6c 2e 68 0a 09 |rder.c n|tohl.h..|
|000014d0| 24 28 43 43 29 20 24 28 | 43 46 4c 41 47 53 29 20 |$(CC) $(|CFLAGS) |
|000014e0| 24 28 4c 44 46 4c 41 47 | 53 29 20 62 79 74 65 6f |$(LDFLAG|S) byteo|
|000014f0| 72 64 65 72 2e 63 20 2d | 6f 20 62 79 74 65 6f 72 |rder.c -|o byteor|
|00001500| 64 65 72 0a 09 28 2e 2f | 62 79 74 65 6f 72 64 65 |der..(./|byteorde|
|00001510| 72 3b 20 63 61 74 20 2e | 2f 6e 74 6f 68 6c 2e 68 |r; cat .|/ntohl.h|
|00001520| 29 20 3e 20 24 28 42 4f | 52 44 45 52 29 0a 0a 24 |) > $(BO|RDER)..$|
|00001530| 28 49 4e 4f 44 45 29 3a | 20 74 79 70 65 73 2e 73 |(INODE):| types.s|
|00001540| 68 20 74 79 70 65 73 2e | 63 20 74 79 70 65 73 0a |h types.|c types.|
|00001550| 09 24 28 53 48 45 4c 4c | 29 20 2e 2f 74 79 70 65 |.$(SHELL|) ./type|
|00001560| 73 2e 73 68 20 22 24 28 | 43 50 50 29 22 20 3e 20 |s.sh "$(|CPP)" > |
|00001570| 24 28 49 4e 4f 44 45 29 | 0a 0a 74 79 70 65 73 3a |$(INODE)|..types:|
|00001580| 09 74 79 70 65 73 2e 63 | 0a 09 24 28 43 43 29 20 |.types.c|..$(CC) |
|00001590| 24 28 43 46 4c 41 47 53 | 29 20 24 28 4c 44 46 4c |$(CFLAGS|) $(LDFL|
|000015a0| 41 47 53 29 20 74 79 70 | 65 73 2e 63 20 2d 6f 20 |AGS) typ|es.c -o |
|000015b0| 74 79 70 65 73 0a 09 0a | 63 6c 65 61 6e 3a 09 0a |types...|clean:..|
|000015c0| 09 72 6d 20 2d 66 20 74 | 79 70 65 73 20 62 79 74 |.rm -f t|ypes byt|
|000015d0| 65 6f 72 64 65 72 20 2a | 2e 6f 20 63 6f 72 65 20 |eorder *|.o core |
|000015e0| 6f 75 72 74 79 70 65 73 | 2e 68 0a 0a 3a 20 6e 74 |ourtypes|.h..: nt|
|000015f0| 6f 68 6c 2e 68 2c 76 20 | 31 2e 32 20 39 32 2f 31 |ohl.h,v |1.2 92/1|
|00001600| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 61 75 78 |tripwire|-1.0/aux|
|00001610| 2f 62 79 74 65 6f 72 64 | 65 72 2e 63 00 00 00 00 |/byteord|er.c....|
|00001620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001660| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 20 32 |.... 6|00 . 2|
|00001670| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00001680| 20 20 20 31 32 35 37 20 | 20 35 32 37 35 35 36 36 | 1257 | 5275566|
|00001690| 33 30 30 20 20 31 31 32 | 33 35 00 20 00 00 00 00 |300 112|35. ....|
|000016a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 23 69 66 6e 64 65 66 20 | 6c 69 6e 74 0a 73 74 61 |#ifndef |lint.sta|
|00001810| 74 69 63 20 63 68 61 72 | 20 72 63 73 69 64 5b 5d |tic char| rcsid[]|
|00001820| 20 3d 20 22 24 49 64 3a | 20 62 79 74 65 6f 72 64 | = "$Id:| byteord|
|00001830| 65 72 2e 63 2c 76 20 31 | 2e 31 2e 31 2e 32 20 39 |er.c,v 1|.1.1.2 9|
|00001840| 32 2f 31 31 2f 30 32 20 | 31 38 3a 31 36 3a 33 38 |2/11/02 |18:16:38|
|00001850| 20 67 65 6e 65 6b 20 45 | 78 70 20 24 22 3b 0a 23 | genek E|xp $";.#|
|00001860| 65 6e 64 69 66 0a 0a 23 | 69 6e 63 6c 75 64 65 20 |endif..#|include |
|00001870| 22 2e 2e 2f 69 6e 63 6c | 75 64 65 2f 63 6f 6e 66 |"../incl|ude/conf|
|00001880| 69 67 2e 68 22 0a 23 69 | 6e 63 6c 75 64 65 20 3c |ig.h".#i|nclude <|
|00001890| 73 74 64 69 6f 2e 68 3e | 0a 23 69 66 64 65 66 20 |stdio.h>|.#ifdef |
|000018a0| 53 54 44 4c 49 42 48 0a | 23 69 6e 63 6c 75 64 65 |STDLIBH.|#include|
|000018b0| 20 3c 73 74 64 6c 69 62 | 2e 68 3e 0a 23 65 6e 64 | <stdlib|.h>.#end|
|000018c0| 69 66 0a 0a 2f 2a 0a 20 | 2a 20 62 79 74 65 6f 72 |if../*. |* byteor|
|000018d0| 64 65 72 2e 63 0a 20 2a | 0a 20 2a 09 6c 69 66 74 |der.c. *|. *.lift|
|000018e0| 65 64 20 61 6e 64 20 68 | 61 63 6b 65 64 20 66 72 |ed and h|acked fr|
|000018f0| 6f 6d 20 4c 61 72 72 79 | 20 57 61 6c 6c 27 73 20 |om Larry| Wall's |
|00001900| 43 6f 6e 66 69 67 75 72 | 65 20 70 72 6f 67 72 61 |Configur|e progra|
|00001910| 6d 2e 0a 20 2a 0a 20 2a | 20 47 65 6e 65 20 4b 69 |m.. *. *| Gene Ki|
|00001920| 6d 0a 20 2a 20 50 75 72 | 64 75 65 20 55 6e 69 76 |m. * Pur|due Univ|
|00001930| 65 72 73 69 74 79 0a 20 | 2a 20 4f 63 74 6f 62 65 |ersity. |* Octobe|
|00001940| 72 20 31 34 2c 20 31 39 | 39 32 0a 20 2a 2f 0a 0a |r 14, 19|92. */..|
|00001950| 6d 61 69 6e 28 29 0a 7b | 0a 20 20 20 20 69 6e 74 |main().{|. int|
|00001960| 20 69 3b 0a 20 20 20 20 | 75 6e 69 6f 6e 20 7b 0a | i;. |union {.|
|00001970| 09 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 6c |.unsigne|d long l|
|00001980| 3b 0a 09 63 68 61 72 20 | 63 5b 73 69 7a 65 6f 66 |;..char |c[sizeof|
|00001990| 28 6c 6f 6e 67 29 5d 3b | 0a 20 20 20 20 7d 20 75 |(long)];|. } u|
|000019a0| 3b 0a 0a 20 20 20 20 69 | 66 20 28 73 69 7a 65 6f |;.. i|f (sizeo|
|000019b0| 66 28 6c 6f 6e 67 29 20 | 3e 20 34 29 0a 09 75 2e |f(long) |> 4)..u.|
|000019c0| 6c 20 3d 20 28 30 78 30 | 38 30 37 30 36 30 35 4c |l = (0x0|8070605L|
|000019d0| 20 3c 3c 20 33 32 29 20 | 7c 20 30 78 30 34 30 33 | << 32) || 0x0403|
|000019e0| 30 32 30 31 4c 3b 0a 20 | 20 20 20 65 6c 73 65 0a |0201L;. | else.|
|000019f0| 09 75 2e 6c 20 3d 20 30 | 78 30 34 30 33 30 32 30 |.u.l = 0|x0403020|
|00001a00| 31 4c 3b 0a 0a 20 20 20 | 20 28 76 6f 69 64 29 70 |1L;.. | (void)p|
|00001a10| 72 69 6e 74 66 28 22 23 | 64 65 66 69 6e 65 20 42 |rintf("#|define B|
|00001a20| 59 54 45 4f 52 44 45 52 | 20 30 78 22 29 3b 0a 20 |YTEORDER| 0x");. |
|00001a30| 20 20 20 66 6f 72 20 28 | 69 3d 30 3b 20 69 20 3c | for (|i=0; i <|
|00001a40| 20 73 69 7a 65 6f 66 28 | 6c 6f 6e 67 29 3b 20 69 | sizeof(|long); i|
|00001a50| 2b 2b 29 0a 09 28 76 6f | 69 64 29 70 72 69 6e 74 |++)..(vo|id)print|
|00001a60| 66 28 22 25 63 22 2c 75 | 2e 63 5b 69 5d 2b 27 30 |f("%c",u|.c[i]+'0|
|00001a70| 27 29 3b 0a 20 20 20 20 | 28 76 6f 69 64 29 70 72 |');. |(void)pr|
|00001a80| 69 6e 74 66 28 22 5c 6e | 22 29 3b 0a 0a 20 20 20 |intf("\n|");.. |
|00001a90| 20 65 78 69 74 28 30 29 | 3b 0a 20 20 20 20 2f 2a | exit(0)|;. /*|
|00001aa0| 4e 4f 54 52 45 41 43 48 | 45 44 2a 2f 0a 7d 0a 63 |NOTREACH|ED*/.}.c|
|00001ab0| 69 61 6c 6c 79 20 69 66 | 20 74 68 65 73 65 20 72 |ially if| these r|
|00001ac0| 6f 75 74 69 6e 65 73 20 | 61 72 65 20 63 61 6c 6c |outines |are call|
|00001ad0| 65 64 20 6f 66 74 65 6e | 2e 0a 0a 2d 2d 73 70 61 |ed often|...--spa|
|00001ae0| 66 0a 2a 2f 0a 73 28 73 | 69 7a 65 6f 66 28 73 74 |f.*/.s(s|izeof(st|
|00001af0| 61 74 62 75 66 2e 73 74 | 5f 6e 6c 69 6e 6b 29 29 |atbuf.st|_nlink))|
|00001b00| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 65 6c 73 65 |;. }.| else|
|00001b10| 20 69 66 20 28 73 74 72 | 63 6d 70 28 70 63 2c 20 | if (str|cmp(pc, |
|00001b20| 22 75 69 64 5f 74 22 29 | 20 3d 3d 20 30 29 20 7b |"uid_t")| == 0) {|
|00001b30| 0a 09 69 73 75 6e 73 69 | 67 6e 65 64 20 3d 20 30 |..isunsi|gned = 0|
|00001b40| 3b 0a 09 74 79 70 65 69 | 73 28 73 69 7a 65 6f 66 |;..typei|s(sizeof|
|00001b50| 28 73 74 61 74 62 75 66 | 2e 73 74 5f 75 69 64 29 |(statbuf|.st_uid)|
|00001b60| 29 3b 0a 20 20 20 20 7d | 0a 20 20 20 20 65 6c 73 |);. }|. els|
|00001b70| 65 20 69 66 20 28 73 74 | 72 63 6d 70 28 70 63 2c |e if (st|rcmp(pc,|
|00001b80| 20 22 67 69 64 5f 74 22 | 29 20 3d 3d 20 30 29 20 | "gid_t"|) == 0) |
|00001b90| 7b 0a 09 69 73 75 6e 73 | 69 67 6e 65 64 20 3d 20 |{..isuns|igned = |
|00001ba0| 30 3b 0a 09 74 79 70 65 | 69 73 28 73 69 7a 65 6f |0;..type|is(sizeo|
|00001bb0| 66 28 73 74 61 74 62 75 | 66 2e 73 74 5f 67 69 64 |f(statbu|f.st_gid|
|00001bc0| 29 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 65 6c |));. |}. el|
|00001bd0| 73 65 20 69 66 20 28 73 | 74 72 63 6d 70 28 70 63 |se if (s|trcmp(pc|
|00001be0| 2c 20 22 6f 66 66 5f 74 | 22 29 20 3d 3d 20 30 29 |, "off_t|") == 0)|
|00001bf0| 20 7b 0a 09 69 73 75 6e | 73 69 67 6e 65 64 20 3d | {..isun|signed =|
|00001c00| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 61 75 78 |tripwire|-1.0/aux|
|00001c10| 2f 74 79 70 65 73 2e 73 | 68 00 00 00 00 00 00 00 |/types.s|h.......|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 37 | 30 30 20 00 20 20 20 32 |.... 7|00 . 2|
|00001c70| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00001c80| 20 20 20 32 32 30 31 20 | 20 35 32 37 35 35 36 36 | 2201 | 5275566|
|00001c90| 33 30 30 20 20 31 30 35 | 36 31 00 20 00 00 00 00 |300 105|61. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 23 21 2f 62 69 6e 2f 73 | 68 0a 0a 23 20 24 49 64 |#!/bin/s|h..# $Id|
|00001e10| 3a 20 74 79 70 65 73 2e | 73 68 2c 76 20 31 2e 31 |: types.|sh,v 1.1|
|00001e20| 2e 31 2e 31 20 39 32 2f | 31 31 2f 30 32 20 31 37 |.1.1 92/|11/02 17|
|00001e30| 3a 34 35 3a 31 36 20 67 | 65 6e 65 6b 20 45 78 70 |:45:16 g|enek Exp|
|00001e40| 20 24 0a 0a 23 20 74 79 | 70 65 73 2e 73 68 0a 23 | $..# ty|pes.sh.#|
|00001e50| 0a 23 20 67 6c 65 61 6e | 20 61 6e 79 20 6d 69 73 |.# glean| any mis|
|00001e60| 73 69 6e 67 20 73 74 72 | 75 63 74 20 73 74 61 74 |sing str|uct stat|
|00001e70| 20 74 79 70 65 64 65 66 | 73 2e 0a 23 0a 23 20 47 | typedef|s..#.# G|
|00001e80| 65 6e 65 20 4b 69 6d 0a | 23 20 50 75 72 64 75 65 |ene Kim.|# Purdue|
|00001e90| 20 55 6e 69 76 65 72 73 | 69 74 79 0a 23 20 4f 63 | Univers|ity.# Oc|
|00001ea0| 74 6f 62 65 72 20 31 38 | 2c 20 31 39 39 32 0a 0a |tober 18|, 1992..|
|00001eb0| 69 66 20 74 65 73 74 20 | 21 20 2d 78 20 2e 2f 74 |if test |! -x ./t|
|00001ec0| 79 70 65 73 0a 74 68 65 | 6e 0a 20 20 20 20 65 63 |ypes.the|n. ec|
|00001ed0| 68 6f 20 22 59 6f 75 20 | 6d 75 73 74 20 64 6f 20 |ho "You |must do |
|00001ee0| 27 6d 61 6b 65 27 20 66 | 69 72 73 74 21 22 0a 20 |'make' f|irst!". |
|00001ef0| 20 20 20 65 78 69 74 20 | 31 0a 66 69 0a 0a 43 50 | exit |1.fi..CP|
|00001f00| 50 3d 24 7b 31 3f 22 52 | 75 6e 20 66 72 6f 6d 20 |P=${1?"R|un from |
|00001f10| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 21 22 7d 0a |the make|file!"}.|
|00001f20| 0a 54 59 50 45 53 3d 2e | 2f 6f 75 72 74 79 70 65 |.TYPES=.|/ourtype|
|00001f30| 73 2e 68 0a 0a 23 20 62 | 75 69 6c 64 20 6f 75 72 |s.h..# b|uild our|
|00001f40| 20 6f 77 6e 20 6c 6f 63 | 61 6c 20 63 6f 70 79 20 | own loc|al copy |
|00001f50| 6f 66 20 74 79 70 65 73 | 2e 68 0a 0a 63 61 74 20 |of types|.h..cat |
|00001f60| 3e 20 67 65 74 74 79 70 | 65 73 2e 63 20 3c 3c 20 |> gettyp|es.c << |
|00001f70| 27 47 48 4b 27 0a 23 69 | 6e 63 6c 75 64 65 20 3c |'GHK'.#i|nclude <|
|00001f80| 73 79 73 2f 73 74 61 74 | 2e 68 3e 0a 23 69 6e 63 |sys/stat|.h>.#inc|
|00001f90| 6c 75 64 65 20 3c 73 79 | 73 2f 74 79 70 65 73 2e |lude <sy|s/types.|
|00001fa0| 68 3e 0a 47 48 4b 0a 24 | 43 50 50 20 67 65 74 74 |h>.GHK.$|CPP gett|
|00001fb0| 79 70 65 73 2e 63 20 3e | 20 24 54 59 50 45 53 0a |ypes.c >| $TYPES.|
|00001fc0| 72 6d 20 2d 66 20 67 65 | 74 74 79 70 65 73 2e 63 |rm -f ge|ttypes.c|
|00001fd0| 0a 0a 23 20 70 72 69 6e | 74 20 6f 75 74 20 62 61 |..# prin|t out ba|
|00001fe0| 6e 6e 65 72 20 66 6f 72 | 20 69 6e 6f 64 65 2e 68 |nner for| inode.h|
|00001ff0| 0a 0a 63 61 74 20 3c 3c | 20 27 47 48 4b 27 0a 2f |..cat <<| 'GHK'./|
|00002000| 2a 0a 20 2a 20 69 6e 6f | 64 65 2e 68 0a 20 2a 0a |*. * ino|de.h. *.|
|00002010| 20 2a 20 09 44 6f 20 6e | 6f 74 20 6d 6f 64 69 66 | * .Do n|ot modif|
|00002020| 79 20 74 68 69 73 20 66 | 69 6c 65 2e 20 20 54 68 |y this f|ile. Th|
|00002030| 69 73 20 66 69 6c 65 20 | 77 61 73 20 61 75 74 6f |is file |was auto|
|00002040| 6d 61 74 69 63 61 6c 6c | 79 20 0a 20 2a 20 09 67 |maticall|y . * .g|
|00002050| 65 6e 65 72 61 74 65 64 | 20 62 79 20 74 68 65 20 |enerated| by the |
|00002060| 54 72 69 70 77 69 72 65 | 20 6d 61 6b 65 66 69 6c |Tripwire| makefil|
|00002070| 65 2e 0a 20 2a 0a 20 2a | 2f 0a 0a 47 48 4b 0a 0a |e.. *. *|/..GHK..|
|00002080| 23 20 6e 6f 77 20 73 74 | 61 72 74 20 66 69 6e 64 |# now st|art find|
|00002090| 69 6e 67 20 74 68 65 20 | 6d 69 73 73 69 6e 67 20 |ing the |missing |
|000020a0| 74 79 70 65 64 65 66 73 | 0a 0a 67 72 65 70 20 6d |typedefs|..grep m|
|000020b0| 6f 64 65 5f 74 20 24 54 | 59 50 45 53 20 3e 20 2f |ode_t $T|YPES > /|
|000020c0| 64 65 76 2f 6e 75 6c 6c | 20 0a 69 66 20 5b 20 24 |dev/null| .if [ $|
|000020d0| 3f 20 2d 6e 65 20 30 20 | 5d 0a 74 68 65 6e 0a 20 |? -ne 0 |].then. |
|000020e0| 20 20 20 2e 2f 74 79 70 | 65 73 20 6d 6f 64 65 5f | ./typ|es mode_|
|000020f0| 74 3b 0a 66 69 0a 0a 67 | 72 65 70 20 69 6e 6f 5f |t;.fi..g|rep ino_|
|00002100| 74 20 24 54 59 50 45 53 | 20 3e 20 2f 64 65 76 2f |t $TYPES| > /dev/|
|00002110| 6e 75 6c 6c 0a 69 66 20 | 5b 20 24 3f 20 2d 6e 65 |null.if |[ $? -ne|
|00002120| 20 30 20 5d 0a 74 68 65 | 6e 0a 20 20 20 20 2e 2f | 0 ].the|n. ./|
|00002130| 74 79 70 65 73 20 69 6e | 6f 5f 74 3b 20 0a 66 69 |types in|o_t; .fi|
|00002140| 0a 0a 67 72 65 70 20 6e | 6c 69 6e 6b 5f 74 20 24 |..grep n|link_t $|
|00002150| 54 59 50 45 53 20 3e 20 | 2f 64 65 76 2f 6e 75 6c |TYPES > |/dev/nul|
|00002160| 6c 0a 69 66 20 5b 20 24 | 3f 20 2d 6e 65 20 30 20 |l.if [ $|? -ne 0 |
|00002170| 5d 0a 74 68 65 6e 0a 20 | 20 20 20 2e 2f 74 79 70 |].then. | ./typ|
|00002180| 65 73 20 6e 6c 69 6e 6b | 5f 74 3b 0a 66 69 0a 0a |es nlink|_t;.fi..|
|00002190| 67 72 65 70 20 75 69 64 | 5f 74 20 24 54 59 50 45 |grep uid|_t $TYPE|
|000021a0| 53 20 3e 20 2f 64 65 76 | 2f 6e 75 6c 6c 0a 69 66 |S > /dev|/null.if|
|000021b0| 20 5b 20 24 3f 20 2d 6e | 65 20 30 20 5d 0a 74 68 | [ $? -n|e 0 ].th|
|000021c0| 65 6e 0a 20 20 20 20 2e | 2f 74 79 70 65 73 20 75 |en. .|/types u|
|000021d0| 69 64 5f 74 3b 0a 66 69 | 0a 0a 67 72 65 70 20 67 |id_t;.fi|..grep g|
|000021e0| 69 64 5f 74 20 24 54 59 | 50 45 53 20 3e 20 2f 64 |id_t $TY|PES > /d|
|000021f0| 65 76 2f 6e 75 6c 6c 0a | 69 66 20 5b 20 24 3f 20 |ev/null.|if [ $? |
|00002200| 2d 6e 65 20 30 20 5d 0a | 74 68 65 6e 0a 20 20 20 |-ne 0 ].|then. |
|00002210| 20 2e 2f 74 79 70 65 73 | 20 67 69 64 5f 74 3b 0a | ./types| gid_t;.|
|00002220| 66 69 0a 0a 67 72 65 70 | 20 6f 66 66 5f 74 20 24 |fi..grep| off_t $|
|00002230| 54 59 50 45 53 20 3e 20 | 2f 64 65 76 2f 6e 75 6c |TYPES > |/dev/nul|
|00002240| 6c 0a 69 66 20 5b 20 24 | 3f 20 2d 6e 65 20 30 20 |l.if [ $|? -ne 0 |
|00002250| 5d 0a 74 68 65 6e 0a 20 | 20 20 20 2e 2f 74 79 70 |].then. | ./typ|
|00002260| 65 73 20 6f 66 66 5f 74 | 3b 0a 66 69 0a 0a 72 6d |es off_t|;.fi..rm|
|00002270| 20 24 54 59 50 45 53 0a | 0a 65 78 69 74 20 30 3b | $TYPES.|.exit 0;|
|00002280| 0a 6e 74 66 28 22 5c 6e | 22 29 3b 0a 0a 20 20 20 |.ntf("\n|");.. |
|00002290| 20 65 78 69 74 28 30 29 | 3b 0a 20 20 20 20 2f 2a | exit(0)|;. /*|
|000022a0| 4e 4f 54 52 45 41 43 48 | 45 44 2a 2f 0a 7d 0a 63 |NOTREACH|ED*/.}.c|
|000022b0| 69 61 6c 6c 79 20 69 66 | 20 74 68 65 73 65 20 72 |ially if| these r|
|000022c0| 6f 75 74 69 6e 65 73 20 | 61 72 65 20 63 61 6c 6c |outines |are call|
|000022d0| 65 64 20 6f 66 74 65 6e | 2e 0a 0a 2d 2d 73 70 61 |ed often|...--spa|
|000022e0| 66 0a 2a 2f 0a 73 28 73 | 69 7a 65 6f 66 28 73 74 |f.*/.s(s|izeof(st|
|000022f0| 61 74 62 75 66 2e 73 74 | 5f 6e 6c 69 6e 6b 29 29 |atbuf.st|_nlink))|
|00002300| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 65 6c 73 65 |;. }.| else|
|00002310| 20 69 66 20 28 73 74 72 | 63 6d 70 28 70 63 2c 20 | if (str|cmp(pc, |
|00002320| 22 75 69 64 5f 74 22 29 | 20 3d 3d 20 30 29 20 7b |"uid_t")| == 0) {|
|00002330| 0a 09 69 73 75 6e 73 69 | 67 6e 65 64 20 3d 20 30 |..isunsi|gned = 0|
|00002340| 3b 0a 09 74 79 70 65 69 | 73 28 73 69 7a 65 6f 66 |;..typei|s(sizeof|
|00002350| 28 73 74 61 74 62 75 66 | 2e 73 74 5f 75 69 64 29 |(statbuf|.st_uid)|
|00002360| 29 3b 0a 20 20 20 20 7d | 0a 20 20 20 20 65 6c 73 |);. }|. els|
|00002370| 65 20 69 66 20 28 73 74 | 72 63 6d 70 28 70 63 2c |e if (st|rcmp(pc,|
|00002380| 20 22 67 69 64 5f 74 22 | 29 20 3d 3d 20 30 29 20 | "gid_t"|) == 0) |
|00002390| 7b 0a 09 69 73 75 6e 73 | 69 67 6e 65 64 20 3d 20 |{..isuns|igned = |
|000023a0| 30 3b 0a 09 74 79 70 65 | 69 73 28 73 69 7a 65 6f |0;..type|is(sizeo|
|000023b0| 66 28 73 74 61 74 62 75 | 66 2e 73 74 5f 67 69 64 |f(statbu|f.st_gid|
|000023c0| 29 29 3b 0a 20 20 20 20 | 7d 0a 20 20 20 20 65 6c |));. |}. el|
|000023d0| 73 65 20 69 66 20 28 73 | 74 72 63 6d 70 28 70 63 |se if (s|trcmp(pc|
|000023e0| 2c 20 22 6f 66 66 5f 74 | 22 29 20 3d 3d 20 30 29 |, "off_t|") == 0)|
|000023f0| 20 7b 0a 09 69 73 75 6e | 73 69 67 6e 65 64 20 3d | {..isun|signed =|
|00002400| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 6c 69 62 |tripwire|-1.0/lib|
|00002410| 2f 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |/.......|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 20 20 20 37 | 34 30 20 00 20 20 20 32 |.... 7|40 . 2|
|00002470| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00002480| 20 20 20 20 20 20 30 20 | 20 35 32 37 35 35 36 36 | 0 | 5275566|
|00002490| 34 35 34 20 20 20 36 37 | 36 35 00 20 00 00 00 00 |454 67|65. ....|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 6c 69 62 |tripwire|-1.0/lib|
|00002610| 2f 74 77 2e 63 6f 6e 66 | 69 67 00 00 00 00 00 00 |/tw.conf|ig......|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 20 32 |.... 6|00 . 2|
|00002670| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00002680| 20 20 31 30 30 34 34 20 | 20 35 32 37 35 35 36 36 | 10044 | 5275566|
|00002690| 33 30 31 20 20 31 30 36 | 37 37 00 20 00 00 00 00 |301 106|77. ....|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 23 0a 23 20 74 77 2e 63 | 6f 6e 66 69 67 0a 23 0a |#.# tw.c|onfig.#.|
|00002810| 23 20 54 68 69 73 20 66 | 69 6c 65 20 63 6f 6e 74 |# This f|ile cont|
|00002820| 61 69 6e 73 20 61 20 6c | 69 73 74 20 6f 66 20 66 |ains a l|ist of f|
|00002830| 69 6c 65 73 20 61 6e 64 | 20 64 69 72 65 63 74 6f |iles and| directo|
|00002840| 72 69 65 73 20 74 68 61 | 74 20 53 79 73 74 65 6d |ries tha|t System|
|00002850| 20 0a 23 20 50 72 65 65 | 6e 65 72 20 77 69 6c 6c | .# Pree|ner will|
|00002860| 20 73 63 61 6e 2e 20 20 | 49 6e 66 6f 72 6d 61 74 | scan. |Informat|
|00002870| 69 6f 6e 20 63 6f 6c 6c | 65 63 74 65 64 20 66 72 |ion coll|ected fr|
|00002880| 6f 6d 20 74 68 65 73 65 | 20 66 69 6c 65 73 20 77 |om these| files w|
|00002890| 69 6c 6c 20 62 65 20 0a | 23 20 73 74 6f 72 65 64 |ill be .|# stored|
|000028a0| 20 69 6e 20 74 68 65 20 | 74 77 2e 64 61 74 61 62 | in the |tw.datab|
|000028b0| 61 73 65 20 66 69 6c 65 | 2e 0a 23 0a 23 20 46 6f |ase file|..#.# Fo|
|000028c0| 72 6d 61 74 3a 20 09 09 | 09 5b 21 7c 3d 5d 20 65 |rmat: ..|.[!|=] e|
|000028d0| 6e 74 72 79 20 5b 69 67 | 6e 6f 72 65 2d 66 6c 61 |ntry [ig|nore-fla|
|000028e0| 67 73 5d 0a 23 0a 23 20 | 77 68 65 72 65 3a 09 20 |gs].#.# |where:. |
|000028f0| 27 21 27 20 73 69 67 6e | 69 66 69 65 73 20 74 68 |'!' sign|ifies th|
|00002900| 65 20 65 6e 74 72 79 20 | 69 73 20 74 6f 20 62 65 |e entry |is to be|
|00002910| 20 70 72 75 6e 65 64 20 | 28 69 6e 63 6c 75 73 69 | pruned |(inclusi|
|00002920| 76 65 29 20 66 72 6f 6d | 0a 23 09 09 09 09 74 68 |ve) from|.#....th|
|00002930| 65 20 6c 69 73 74 20 6f | 66 20 66 69 6c 65 73 20 |e list o|f files |
|00002940| 74 6f 20 62 65 20 73 63 | 61 6e 6e 65 64 2e 0a 23 |to be sc|anned..#|
|00002950| 09 09 20 27 3d 27 20 73 | 69 67 6e 69 66 69 65 73 |.. '=' s|ignifies|
|00002960| 20 74 68 65 20 65 6e 74 | 72 79 20 69 73 20 74 6f | the ent|ry is to|
|00002970| 20 62 65 20 61 64 64 65 | 64 2c 20 62 75 74 20 69 | be adde|d, but i|
|00002980| 66 20 69 74 20 69 73 0a | 23 09 09 09 09 61 20 64 |f it is.|#....a d|
|00002990| 69 72 65 63 74 6f 72 79 | 2c 20 74 68 65 6e 20 61 |irectory|, then a|
|000029a0| 6c 6c 20 69 74 73 20 63 | 6f 6e 74 65 6e 74 73 20 |ll its c|ontents |
|000029b0| 61 72 65 20 70 72 75 6e | 65 64 0a 23 09 09 09 09 |are prun|ed.#....|
|000029c0| 28 75 73 65 66 75 6c 20 | 66 6f 72 20 2f 74 6d 70 |(useful |for /tmp|
|000029d0| 29 2e 0a 23 0a 23 20 77 | 68 65 72 65 3a 09 65 6e |)..#.# w|here:.en|
|000029e0| 74 72 79 20 69 73 20 74 | 68 65 20 61 62 73 6f 6c |try is t|he absol|
|000029f0| 75 74 65 20 70 61 74 68 | 6e 61 6d 65 20 6f 66 20 |ute path|name of |
|00002a00| 61 20 66 69 6c 65 20 6f | 72 20 61 20 64 69 72 65 |a file o|r a dire|
|00002a10| 63 74 6f 72 79 0a 23 0a | 23 20 77 68 65 72 65 20 |ctory.#.|# where |
|00002a20| 69 67 6e 6f 72 65 2d 66 | 6c 61 67 73 20 61 72 65 |ignore-f|lags are|
|00002a30| 20 69 6e 20 74 68 65 20 | 66 6f 72 6d 61 74 3a 0a | in the |format:.|
|00002a40| 23 09 09 5b 74 65 6d 70 | 6c 61 74 65 5d 5b 20 5b |#..[temp|late][ [|
|00002a50| 2b 7c 2d 5d 5b 70 69 6e | 75 67 73 61 6d 31 32 5d |+|-][pin|ugsam12]|
|00002a60| 20 2e 2e 2e 20 5d 0a 23 | 0a 23 20 09 2d 20 3a 20 | ... ].#|.# .- : |
|00002a70| 20 69 67 6e 6f 72 65 20 | 74 68 65 20 66 6f 6c 6c | ignore |the foll|
|00002a80| 6f 77 69 6e 67 20 61 74 | 72 69 62 75 74 65 73 0a |owing at|ributes.|
|00002a90| 23 09 2b 20 3a 20 20 64 | 6f 20 6e 6f 74 20 69 67 |#.+ : d|o not ig|
|00002aa0| 6e 6f 72 65 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |nore the| followi|
|00002ab0| 6e 67 20 61 74 74 72 69 | 62 75 74 65 73 0a 23 0a |ng attri|butes.#.|
|00002ac0| 23 09 70 20 3a 20 20 70 | 65 72 6d 69 73 73 69 6f |#.p : p|ermissio|
|00002ad0| 6e 20 61 6e 64 20 66 69 | 6c 65 20 6d 6f 64 65 20 |n and fi|le mode |
|00002ae0| 62 69 74 73 20 09 61 3a | 20 61 63 63 65 73 73 20 |bits .a:| access |
|00002af0| 74 69 6d 65 73 74 61 6d | 70 0a 23 09 69 20 3a 20 |timestam|p.#.i : |
|00002b00| 20 69 6e 6f 64 65 20 6e | 75 6d 62 65 72 09 09 09 | inode n|umber...|
|00002b10| 6d 3a 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 |m: modif|ication |
|00002b20| 74 69 6d 65 73 74 61 6d | 70 0a 23 09 6e 20 3a 20 |timestam|p.#.n : |
|00002b30| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 6b 73 | number |of links|
|00002b40| 20 28 72 65 66 20 63 6f | 75 6e 74 29 09 63 3a 20 | (ref co|unt).c: |
|00002b50| 69 6e 6f 64 65 20 63 72 | 65 61 74 69 6f 6e 20 74 |inode cr|eation t|
|00002b60| 69 6d 65 73 74 61 6d 70 | 0a 23 09 75 20 3a 20 20 |imestamp|.#.u : |
|00002b70| 75 73 65 72 20 69 64 20 | 6f 66 20 6f 77 6e 65 72 |user id |of owner|
|00002b80| 09 09 09 31 3a 20 73 69 | 67 6e 61 74 75 72 65 20 |...1: si|gnature |
|00002b90| 31 0a 23 09 67 20 3a 20 | 20 67 72 6f 75 70 20 69 |1.#.g : | group i|
|00002ba0| 64 20 6f 66 20 6f 77 6e | 65 72 09 09 09 32 3a 20 |d of own|er...2: |
|00002bb0| 73 69 67 6e 61 74 75 72 | 65 20 32 0a 23 09 73 20 |signatur|e 2.#.s |
|00002bc0| 3a 20 20 73 69 7a 65 20 | 6f 66 20 66 69 6c 65 0a |: size |of file.|
|00002bd0| 23 0a 23 0a 23 20 45 78 | 3a 20 20 20 54 68 65 20 |#.#.# Ex|: The |
|00002be0| 66 6f 6c 6c 6f 77 69 6e | 67 20 65 6e 74 72 79 20 |followin|g entry |
|00002bf0| 77 69 6c 6c 20 73 63 61 | 6e 20 61 6c 6c 20 74 68 |will sca|n all th|
|00002c00| 65 20 66 69 6c 65 73 20 | 69 6e 20 2f 65 74 63 2c |e files |in /etc,|
|00002c10| 20 61 6e 64 20 72 65 70 | 6f 72 74 0a 23 09 61 6e | and rep|ort.#.an|
|00002c20| 79 20 63 68 61 6e 67 65 | 73 20 69 6e 20 6d 6f 64 |y change|s in mod|
|00002c30| 65 20 62 69 74 73 2c 20 | 69 6e 6f 64 65 20 6e 75 |e bits, |inode nu|
|00002c40| 6d 62 65 72 2c 20 72 65 | 66 65 72 65 6e 63 65 20 |mber, re|ference |
|00002c50| 63 6f 75 6e 74 2c 20 75 | 69 64 2c 0a 23 09 67 69 |count, u|id,.#.gi|
|00002c60| 64 2c 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 |d, modif|ication |
|00002c70| 61 6e 64 20 63 72 65 61 | 74 69 6f 6e 20 74 69 6d |and crea|tion tim|
|00002c80| 65 73 74 61 6d 70 2c 20 | 61 6e 64 20 74 68 65 20 |estamp, |and the |
|00002c90| 73 69 67 6e 61 74 75 72 | 65 73 2e 0a 23 09 48 6f |signatur|es..#.Ho|
|00002ca0| 77 65 76 65 72 2c 20 69 | 74 20 77 69 6c 6c 20 69 |wever, i|t will i|
|00002cb0| 67 6e 6f 72 65 20 61 6e | 79 20 63 68 61 6e 67 65 |gnore an|y change|
|00002cc0| 73 20 69 6e 20 74 68 65 | 20 61 63 63 65 73 73 20 |s in the| access |
|00002cd0| 74 69 6d 65 73 74 61 6d | 70 2e 0a 23 0a 23 09 2f |timestam|p..#.#./|
|00002ce0| 65 74 63 09 2b 70 69 6e | 75 67 73 6d 31 32 2d 61 |etc.+pin|ugsm12-a|
|00002cf0| 0a 23 0a 23 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |.#.# The| followi|
|00002d00| 6e 67 20 74 65 6d 70 6c | 61 74 65 73 20 68 61 76 |ng templ|ates hav|
|00002d10| 65 20 62 65 65 6e 20 70 | 72 65 2d 64 65 66 69 6e |e been p|re-defin|
|00002d20| 65 64 20 74 6f 20 6d 61 | 6b 65 20 74 68 65 73 65 |ed to ma|ke these|
|00002d30| 20 6c 6f 6e 67 20 69 67 | 6e 6f 72 65 0a 23 20 6d | long ig|nore.# m|
|00002d40| 61 73 6b 20 64 65 73 63 | 72 69 70 74 69 6f 6e 73 |ask desc|riptions|
|00002d50| 20 75 6e 65 63 65 73 73 | 61 72 79 2e 0a 23 0a 23 | unecess|ary..#.#|
|00002d60| 20 54 65 6d 70 6c 61 74 | 65 73 3a 20 09 28 64 65 | Templat|es: .(de|
|00002d70| 66 61 75 6c 74 29 09 52 | 20 3a 20 20 5b 52 5d 65 |fault).R| : [R]e|
|00002d80| 61 64 2d 6f 6e 6c 79 20 | 28 2b 70 69 6e 75 67 73 |ad-only |(+pinugs|
|00002d90| 6d 31 32 2d 61 29 0a 23 | 09 09 09 09 4c 20 3a 20 |m12-a).#|....L : |
|00002da0| 20 5b 4c 5d 6f 67 20 66 | 69 6c 65 20 28 2b 70 69 | [L]og f|ile (+pi|
|00002db0| 6e 75 67 2d 73 61 6d 31 | 32 29 0a 23 09 09 09 09 |nug-sam1|2).#....|
|00002dc0| 4e 20 3a 20 20 69 67 6e | 6f 72 65 20 5b 4e 5d 6f |N : ign|ore [N]o|
|00002dd0| 74 68 69 6e 67 20 28 2b | 70 69 6e 75 73 67 73 61 |thing (+|pinusgsa|
|00002de0| 6d 63 31 32 29 0a 23 09 | 09 09 09 45 20 3a 20 20 |mc12).#.|...E : |
|00002df0| 69 67 6e 6f 72 65 20 5b | 45 5d 76 65 72 79 74 68 |ignore [|E]veryth|
|00002e00| 69 6e 67 20 28 2d 70 69 | 6e 75 73 67 73 61 6d 63 |ing (-pi|nusgsamc|
|00002e10| 31 32 29 0a 23 0a 23 20 | 42 79 20 64 65 66 61 75 |12).#.# |By defau|
|00002e20| 6c 74 2c 20 54 72 69 70 | 77 69 72 65 20 75 73 65 |lt, Trip|wire use|
|00002e30| 73 20 74 68 65 20 52 20 | 74 65 6d 70 6c 61 74 65 |s the R |template|
|00002e40| 20 2d 2d 20 69 74 20 69 | 67 6e 6f 72 65 73 0a 23 | -- it i|gnores.#|
|00002e50| 20 6f 6e 6c 79 20 74 68 | 65 20 61 63 63 65 73 73 | only th|e access|
|00002e60| 20 74 69 6d 65 73 74 61 | 6d 70 2e 0a 23 0a 23 20 | timesta|mp..#.# |
|00002e70| 59 6f 75 20 63 61 6e 20 | 75 73 65 20 74 65 6d 70 |You can |use temp|
|00002e80| 6c 61 74 65 73 20 77 69 | 74 68 20 6d 6f 64 69 66 |lates wi|th modif|
|00002e90| 69 65 72 73 2c 20 6c 69 | 6b 65 3a 0a 23 09 45 78 |iers, li|ke:.#.Ex|
|00002ea0| 3a 20 20 2f 65 74 63 2f | 6c 70 09 45 2b 75 67 0a |: /etc/|lp.E+ug.|
|00002eb0| 23 0a 23 09 45 78 61 6d | 70 6c 65 20 63 6f 6e 66 |#.#.Exam|ple conf|
|00002ec0| 69 67 75 72 61 74 69 6f | 6e 20 66 69 6c 65 3a 0a |iguratio|n file:.|
|00002ed0| 23 09 09 2f 65 74 63 09 | 09 52 09 23 20 61 6c 6c |#../etc.|.R.# all|
|00002ee0| 20 73 79 73 74 65 6d 20 | 66 69 6c 65 73 0a 23 09 | system |files.#.|
|00002ef0| 09 21 2f 65 74 63 2f 6c | 70 09 52 09 23 20 2e 2e |.!/etc/l|p.R.# ..|
|00002f00| 2e 62 75 74 20 6e 6f 74 | 20 74 68 6f 73 65 20 6c |.but not| those l|
|00002f10| 6f 67 73 0a 23 09 09 3d | 2f 74 6d 70 09 09 4e 09 |ogs.#..=|/tmp..N.|
|00002f20| 23 20 6a 75 73 74 20 74 | 68 65 20 64 69 72 65 63 |# just t|he direc|
|00002f30| 74 6f 72 79 2c 20 6e 6f | 74 20 69 74 73 20 66 69 |tory, no|t its fi|
|00002f40| 6c 65 73 0a 23 0a 23 20 | 3d 3d 3d 3d 0a 23 0a 23 |les.#.# |====.#.#|
|00002f50| 20 50 72 65 70 72 6f 63 | 65 73 73 6f 72 20 64 69 | Preproc|essor di|
|00002f60| 72 65 63 74 69 76 65 73 | 3a 0a 23 0a 23 09 54 68 |rectives|:.#.#.Th|
|00002f70| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 64 69 72 65 |e follow|ing dire|
|00002f80| 63 74 69 76 65 73 20 70 | 72 6f 76 69 64 65 20 43 |ctives p|rovide C|
|00002f90| 2d 70 72 65 70 72 6f 63 | 65 73 73 6f 72 20 61 6e |-preproc|essor an|
|00002fa0| 64 20 6d 34 2d 6c 69 6b | 65 0a 23 09 66 75 6e 63 |d m4-lik|e.#.func|
|00002fb0| 74 69 6f 6e 61 6c 69 74 | 79 3a 0a 23 0a 23 09 09 |tionalit|y:.#.#..|
|00002fc0| 40 40 69 66 68 6f 73 74 | 20 68 6f 73 74 6e 61 6d |@@ifhost| hostnam|
|00002fd0| 65 09 3a 09 69 6e 63 6c | 75 64 65 64 20 69 66 20 |e.:.incl|uded if |
|00002fe0| 28 68 6f 73 74 6e 61 6d | 65 29 20 6d 61 74 63 68 |(hostnam|e) match|
|00002ff0| 65 73 0a 23 09 09 40 40 | 69 66 68 6f 73 74 20 68 |es.#..@@|ifhost h|
|00003000| 6f 73 74 6e 61 6d 65 09 | 3a 09 69 6e 63 6c 75 64 |ostname.|:.includ|
|00003010| 65 64 20 69 66 20 28 68 | 6f 73 74 6e 61 6d 65 29 |ed if (h|ostname)|
|00003020| 20 64 6f 65 73 6e 27 74 | 0a 23 09 09 09 09 09 09 | doesn't|.#......|
|00003030| 6d 61 74 63 68 2e 0a 23 | 09 09 09 09 09 09 28 62 |match..#|......(b|
|00003040| 6f 74 68 20 6e 65 65 64 | 20 6d 61 74 63 68 69 6e |oth need| matchin|
|00003050| 67 20 40 40 65 6e 64 69 | 66 29 0a 23 0a 23 09 09 |g @@endi|f).#.#..|
|00003060| 40 40 64 65 66 69 6e 65 | 20 78 09 09 3a 20 09 64 |@@define| x..: .d|
|00003070| 65 66 69 6e 65 73 20 28 | 78 29 0a 23 09 09 40 40 |efines (|x).#..@@|
|00003080| 75 6e 64 65 66 20 78 09 | 09 3a 20 09 75 6e 64 65 |undef x.|.: .unde|
|00003090| 66 69 6e 65 73 20 28 78 | 29 0a 23 0a 23 09 09 40 |fines (x|).#.#..@|
|000030a0| 40 69 66 64 65 66 20 78 | 09 09 3a 20 09 69 6e 63 |@ifdef x|..: .inc|
|000030b0| 6c 75 64 65 64 20 69 66 | 20 28 78 29 20 69 73 20 |luded if| (x) is |
|000030c0| 64 65 66 69 6e 65 64 2e | 0a 23 09 09 40 40 69 66 |defined.|.#..@@if|
|000030d0| 6e 64 65 66 20 78 09 09 | 3a 20 09 69 6e 63 6c 75 |ndef x..|: .inclu|
|000030e0| 64 65 64 20 69 66 20 28 | 78 29 20 69 73 20 6e 6f |ded if (|x) is no|
|000030f0| 74 20 64 65 66 69 6e 65 | 64 2e 0a 23 09 09 09 09 |t define|d..#....|
|00003100| 09 09 28 62 6f 74 68 20 | 6e 65 65 64 20 6d 61 74 |..(both |need mat|
|00003110| 63 68 69 6e 67 20 40 40 | 65 6e 64 69 66 29 0a 23 |ching @@|endif).#|
|00003120| 0a 23 09 09 40 40 65 6e | 64 69 66 09 09 09 3a 20 |.#..@@en|dif...: |
|00003130| 09 63 6c 6f 73 65 73 20 | 75 70 20 40 40 69 66 68 |.closes |up @@ifh|
|00003140| 6f 73 74 2c 20 40 40 69 | 66 64 65 66 2c 0a 23 09 |ost, @@i|fdef,.#.|
|00003150| 09 09 09 09 09 61 6e 64 | 20 40 40 69 66 6e 64 65 |.....and| @@ifnde|
|00003160| 66 2e 0a 23 0a 23 09 45 | 78 61 6d 70 6c 65 3a 0a |f..#.#.E|xample:.|
|00003170| 23 09 41 20 68 6f 73 74 | 2d 64 65 70 65 6e 64 65 |#.A host|-depende|
|00003180| 6e 74 20 69 6e 63 6c 75 | 73 69 6f 6e 20 63 61 6e |nt inclu|sion can|
|00003190| 20 62 65 20 73 70 65 63 | 69 66 69 65 64 20 6d 61 | be spec|ified ma|
|000031a0| 6e 79 20 77 61 79 73 20 | 73 6f 20 74 77 2e 63 6f |ny ways |so tw.co|
|000031b0| 6e 66 69 67 0a 23 09 66 | 69 6c 65 73 20 63 61 6e |nfig.#.f|iles can|
|000031c0| 20 62 65 20 73 68 61 72 | 65 64 20 61 6d 6f 6e 67 | be shar|ed among|
|000031d0| 20 6d 75 6c 74 69 70 6c | 65 20 6d 61 63 68 69 6e | multipl|e machin|
|000031e0| 65 73 2e 20 20 53 6f 2c | 20 69 66 20 74 68 65 20 |es. So,| if the |
|000031f0| 6d 61 63 68 69 6e 65 20 | 0a 23 09 22 6d 65 6e 74 |machine |.#."ment|
|00003200| 6f 72 2e 63 63 2e 70 75 | 72 64 75 65 2e 65 64 75 |or.cc.pu|rdue.edu|
|00003210| 22 20 69 73 20 74 68 65 | 20 6f 6e 6c 79 20 6d 61 |" is the| only ma|
|00003220| 63 68 69 6e 65 20 74 68 | 61 74 20 68 61 73 20 61 |chine th|at has a|
|00003230| 20 63 65 72 74 61 69 6e | 20 66 69 6c 65 2c 0a 23 | certain| file,.#|
|00003240| 09 79 6f 75 20 63 6f 75 | 6c 64 20 75 73 65 3a 0a |.you cou|ld use:.|
|00003250| 23 0a 23 09 09 40 40 69 | 66 68 6f 73 74 20 6d 65 |#.#..@@i|fhost me|
|00003260| 6e 74 6f 72 2e 63 63 2e | 70 75 72 64 75 65 2e 65 |ntor.cc.|purdue.e|
|00003270| 64 75 0a 23 09 09 2f 65 | 74 63 2f 74 77 2e 6c 6f |du.#../e|tc/tw.lo|
|00003280| 67 2e 6d 65 6e 74 6f 72 | 09 52 0a 23 09 09 40 40 |g.mentor|.R.#..@@|
|00003290| 65 6e 64 69 66 0a 23 0a | 0a 2f 74 6d 70 2f 67 65 |endif.#.|./tmp/ge|
|000032a0| 6e 65 6b 2f 74 72 69 70 | 77 69 72 65 2d 31 2e 30 |nek/trip|wire-1.0|
|000032b0| 09 09 09 09 52 2b 30 31 | 32 33 34 35 36 37 38 39 |....R+01|23456789|
|000032c0| 2d 75 67 70 6d 63 69 0a | 2f 74 6d 70 2f 67 65 6e |-ugpmci.|/tmp/gen|
|000032d0| 65 6b 2f 74 72 69 70 77 | 69 72 65 2d 31 2e 30 2f |ek/tripw|ire-1.0/|
|000032e0| 74 65 73 74 73 20 09 09 | 09 45 0a 2f 74 6d 70 2f |tests ..|.E./tmp/|
|000032f0| 67 65 6e 65 6b 2f 74 72 | 69 70 77 69 72 65 2d 31 |genek/tr|ipwire-1|
|00003300| 2e 30 2f 74 77 2e 63 6f | 6e 66 69 67 09 20 09 45 |.0/tw.co|nfig. .E|
|00003310| 0a 2f 74 6d 70 2f 67 65 | 6e 65 6b 2f 74 72 69 70 |./tmp/ge|nek/trip|
|00003320| 77 69 72 65 2d 31 2e 30 | 2f 64 61 74 61 62 61 73 |wire-1.0|/databas|
|00003330| 65 73 20 09 09 45 0a 0a | 2f 74 6d 70 2f 67 65 6e |es ..E..|/tmp/gen|
|00003340| 65 6b 2f 74 72 69 70 77 | 69 72 65 2d 31 2e 30 2f |ek/tripw|ire-1.0/|
|00003350| 73 72 63 2f 63 6f 6e 66 | 69 67 2e 70 61 72 73 65 |src/conf|ig.parse|
|00003360| 2e 6f 0a 2f 74 6d 70 2f | 67 65 6e 65 6b 2f 74 72 |.o./tmp/|genek/tr|
|00003370| 69 70 77 69 72 65 2d 31 | 2e 30 2f 73 72 63 2f 6d |ipwire-1|.0/src/m|
|00003380| 61 69 6e 2e 6f 0a 2f 74 | 6d 70 2f 67 65 6e 65 6b |ain.o./t|mp/genek|
|00003390| 2f 74 72 69 70 77 69 72 | 65 2d 31 2e 30 2f 73 72 |/tripwir|e-1.0/sr|
|000033a0| 63 2f 6c 69 73 74 2e 6f | 0a 2f 74 6d 70 2f 67 65 |c/list.o|./tmp/ge|
|000033b0| 6e 65 6b 2f 74 72 69 70 | 77 69 72 65 2d 31 2e 30 |nek/trip|wire-1.0|
|000033c0| 2f 73 72 63 2f 69 67 6e | 6f 72 65 76 65 63 2e 6f |/src/ign|orevec.o|
|000033d0| 0a 2f 74 6d 70 2f 67 65 | 6e 65 6b 2f 74 72 69 70 |./tmp/ge|nek/trip|
|000033e0| 77 69 72 65 2d 31 2e 30 | 2f 73 72 63 2f 64 62 61 |wire-1.0|/src/dba|
|000033f0| 73 65 2e 62 75 69 6c 64 | 2e 6f 0a 2f 74 6d 70 2f |se.build|.o./tmp/|
|00003400| 67 65 6e 65 6b 2f 74 72 | 69 70 77 69 72 65 2d 31 |genek/tr|ipwire-1|
|00003410| 2e 30 2f 73 72 63 2f 75 | 74 69 6c 73 2e 6f 0a 2f |.0/src/u|tils.o./|
|00003420| 74 6d 70 2f 67 65 6e 65 | 6b 2f 74 72 69 70 77 69 |tmp/gene|k/tripwi|
|00003430| 72 65 2d 31 2e 30 2f 73 | 72 63 2f 70 72 65 65 6e |re-1.0/s|rc/preen|
|00003440| 2e 6f 0a 2f 74 6d 70 2f | 67 65 6e 65 6b 2f 74 72 |.o./tmp/|genek/tr|
|00003450| 69 70 77 69 72 65 2d 31 | 2e 30 2f 73 72 63 2f 70 |ipwire-1|.0/src/p|
|00003460| 72 65 65 6e 2e 69 6e 74 | 65 72 70 2e 6f 0a 2f 74 |reen.int|erp.o./t|
|00003470| 6d 70 2f 67 65 6e 65 6b | 2f 74 72 69 70 77 69 72 |mp/genek|/tripwir|
|00003480| 65 2d 31 2e 30 2f 73 72 | 63 2f 70 72 65 65 6e 2e |e-1.0/sr|c/preen.|
|00003490| 72 65 70 6f 72 74 2e 6f | 0a 2f 74 6d 70 2f 67 65 |report.o|./tmp/ge|
|000034a0| 6e 65 6b 2f 74 72 69 70 | 77 69 72 65 2d 31 2e 30 |nek/trip|wire-1.0|
|000034b0| 2f 73 72 63 2f 6e 75 6c | 6c 73 69 67 2e 6f 0a 2f |/src/nul|lsig.o./|
|000034c0| 74 6d 70 2f 67 65 6e 65 | 6b 2f 74 72 69 70 77 69 |tmp/gene|k/tripwi|
|000034d0| 72 65 2d 31 2e 30 2f 73 | 72 63 2f 63 6f 6e 66 69 |re-1.0/s|rc/confi|
|000034e0| 67 2e 70 72 69 6d 2e 6f | 0a 2f 74 6d 70 2f 67 65 |g.prim.o|./tmp/ge|
|000034f0| 6e 65 6b 2f 74 72 69 70 | 77 69 72 65 2d 31 2e 30 |nek/trip|wire-1.0|
|00003500| 2f 73 72 63 2f 64 62 61 | 73 65 2e 75 70 64 61 74 |/src/dba|se.updat|
|00003510| 65 2e 6f 0a 2f 74 6d 70 | 2f 67 65 6e 65 6b 2f 74 |e.o./tmp|/genek/t|
|00003520| 72 69 70 77 69 72 65 2d | 31 2e 30 2f 73 72 63 2f |ripwire-|1.0/src/|
|00003530| 73 69 67 66 65 74 63 68 | 2e 6f 0a 2f 74 6d 70 2f |sigfetch|.o./tmp/|
|00003540| 67 65 6e 65 6b 2f 74 72 | 69 70 77 69 72 65 2d 31 |genek/tr|ipwire-1|
|00003550| 2e 30 2f 73 72 63 2f 63 | 6f 6e 66 69 67 2e 70 72 |.0/src/c|onfig.pr|
|00003560| 65 2e 6f 0a 2f 74 6d 70 | 2f 67 65 6e 65 6b 2f 74 |e.o./tmp|/genek/t|
|00003570| 72 69 70 77 69 72 65 2d | 31 2e 30 2f 73 69 67 73 |ripwire-|1.0/sigs|
|00003580| 2f 63 72 63 2f 63 72 63 | 2e 6f 0a 2f 74 6d 70 2f |/crc/crc|.o./tmp/|
|00003590| 67 65 6e 65 6b 2f 74 72 | 69 70 77 69 72 65 2d 31 |genek/tr|ipwire-1|
|000035a0| 2e 30 2f 73 69 67 73 2f | 63 72 63 33 32 2f 63 72 |.0/sigs/|crc32/cr|
|000035b0| 63 33 32 2e 6f 0a 2f 74 | 6d 70 2f 67 65 6e 65 6b |c32.o./t|mp/genek|
|000035c0| 2f 74 72 69 70 77 69 72 | 65 2d 31 2e 30 2f 73 69 |/tripwir|e-1.0/si|
|000035d0| 67 73 2f 6d 64 32 2f 6d | 64 32 77 72 61 70 70 65 |gs/md2/m|d2wrappe|
|000035e0| 72 2e 6f 0a 2f 74 6d 70 | 2f 67 65 6e 65 6b 2f 74 |r.o./tmp|/genek/t|
|000035f0| 72 69 70 77 69 72 65 2d | 31 2e 30 2f 73 69 67 73 |ripwire-|1.0/sigs|
|00003600| 2f 6d 64 32 2f 6d 64 32 | 2e 6f 0a 2f 74 6d 70 2f |/md2/md2|.o./tmp/|
|00003610| 67 65 6e 65 6b 2f 74 72 | 69 70 77 69 72 65 2d 31 |genek/tr|ipwire-1|
|00003620| 2e 30 2f 73 69 67 73 2f | 6d 64 34 2f 6d 64 34 2e |.0/sigs/|md4/md4.|
|00003630| 6f 0a 2f 74 6d 70 2f 67 | 65 6e 65 6b 2f 74 72 69 |o./tmp/g|enek/tri|
|00003640| 70 77 69 72 65 2d 31 2e | 30 2f 73 69 67 73 2f 6d |pwire-1.|0/sigs/m|
|00003650| 64 34 2f 6d 64 34 77 72 | 61 70 70 65 72 2e 6f 0a |d4/md4wr|apper.o.|
|00003660| 2f 74 6d 70 2f 67 65 6e | 65 6b 2f 74 72 69 70 77 |/tmp/gen|ek/tripw|
|00003670| 69 72 65 2d 31 2e 30 2f | 73 69 67 73 2f 6d 64 35 |ire-1.0/|sigs/md5|
|00003680| 2f 6d 64 35 2e 6f 0a 2f | 74 6d 70 2f 67 65 6e 65 |/md5.o./|tmp/gene|
|00003690| 6b 2f 74 72 69 70 77 69 | 72 65 2d 31 2e 30 2f 73 |k/tripwi|re-1.0/s|
|000036a0| 69 67 73 2f 6d 64 35 2f | 6d 64 35 77 72 61 70 70 |igs/md5/|md5wrapp|
|000036b0| 65 72 2e 6f 0a 2f 74 6d | 70 2f 67 65 6e 65 6b 2f |er.o./tm|p/genek/|
|000036c0| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 73 69 67 |tripwire|-1.0/sig|
|000036d0| 73 2f 73 6e 65 66 72 75 | 2f 73 6e 65 66 72 75 2e |s/snefru|/snefru.|
|000036e0| 6f 0a 0a 21 2f 74 6d 70 | 2f 67 65 6e 65 6b 2f 74 |o..!/tmp|/genek/t|
|000036f0| 72 69 70 77 69 72 65 2d | 31 2e 30 2f 61 75 78 2f |ripwire-|1.0/aux/|
|00003700| 74 79 70 65 73 0a 21 2f | 74 6d 70 2f 67 65 6e 65 |types.!/|tmp/gene|
|00003710| 6b 2f 74 72 69 70 77 69 | 72 65 2d 31 2e 30 2f 61 |k/tripwi|re-1.0/a|
|00003720| 75 78 2f 62 79 74 65 6f | 72 64 65 72 0a 0a 21 2f |ux/byteo|rder..!/|
|00003730| 74 6d 70 2f 67 65 6e 65 | 6b 2f 74 72 69 70 77 69 |tmp/gene|k/tripwi|
|00003740| 72 65 2d 31 2e 30 2f 73 | 72 63 2f 63 6f 6e 66 69 |re-1.0/s|rc/confi|
|00003750| 67 2e 6c 65 78 2e 63 0a | 21 2f 74 6d 70 2f 67 65 |g.lex.c.|!/tmp/ge|
|00003760| 6e 65 6b 2f 74 72 69 70 | 77 69 72 65 2d 31 2e 30 |nek/trip|wire-1.0|
|00003770| 2f 73 72 63 2f 63 6f 6e | 66 69 67 2e 70 72 65 2e |/src/con|fig.pre.|
|00003780| 63 0a 21 2f 74 6d 70 2f | 67 65 6e 65 6b 2f 74 72 |c.!/tmp/|genek/tr|
|00003790| 69 70 77 69 72 65 2d 31 | 2e 30 2f 4d 61 6b 65 66 |ipwire-1|.0/Makef|
|000037a0| 69 6c 65 0a 21 2f 74 6d | 70 2f 67 65 6e 65 6b 2f |ile.!/tm|p/genek/|
|000037b0| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 69 6e 63 |tripwire|-1.0/inc|
|000037c0| 6c 75 64 65 2f 63 6f 6e | 66 69 67 2e 68 0a 21 2f |lude/con|fig.h.!/|
|000037d0| 74 6d 70 2f 67 65 6e 65 | 6b 2f 74 72 69 70 77 69 |tmp/gene|k/tripwi|
|000037e0| 72 65 2d 31 2e 30 2f 69 | 6e 63 6c 75 64 65 2f 62 |re-1.0/i|nclude/b|
|000037f0| 79 74 65 6f 72 64 65 72 | 2e 68 0a 21 2f 74 6d 70 |yteorder|.h.!/tmp|
|00003800| 2f 67 65 6e 65 6b 2f 74 | 72 69 70 77 69 72 65 2d |/genek/t|ripwire-|
|00003810| 31 2e 30 2f 69 6e 63 6c | 75 64 65 2f 69 6e 6f 64 |1.0/incl|ude/inod|
|00003820| 65 2e 68 0a 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.h.....|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 74 72 69 70 77 69 72 65 | 2d 31 2e 30 2f 52 45 41 |tripwire|-1.0/REA|
|00003a10| 44 4d 45 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |DME.....|........|
|00003a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 20 20 20 36 | 30 30 20 00 20 20 20 32 |.... 6|00 . 2|
|00003a70| 31 36 20 00 20 20 20 32 | 31 36 20 00 20 20 20 20 |16 . 2|16 . |
|00003a80| 20 20 37 31 36 30 32 20 | 20 35 32 37 35 35 36 36 | 71602 | 5275566|
|00003a90| 33 30 31 20 20 20 37 31 | 37 37 00 20 00 00 00 00 |301 71|77. ....|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 23 23 20 24 49 64 3a 20 | 52 45 41 44 4d 45 2c 76 |## $Id: |README,v|
|00003c10| 20 31 2e 38 20 39 32 2f | 31 31 2f 30 33 20 31 33 | 1.8 92/|11/03 13|
|00003c20| 3a 33 34 3a 34 39 20 67 | 65 6e 65 6b 20 45 78 70 |:34:49 g|enek Exp|
|00003c30| 20 24 0a 23 23 0a 23 23 | 20 52 45 41 44 4d 45 20 | $.##.##| README |
|00003c40| 66 6f 72 20 54 72 69 70 | 77 69 72 65 0a 23 23 0a |for Trip|wire.##.|
|00003c50| 23 23 20 47 65 6e 65 20 | 4b 69 6d 20 20 26 20 47 |## Gene |Kim & G|
|00003c60| 65 6e 65 20 53 70 61 66 | 66 6f 72 64 0a 23 23 20 |ene Spaf|ford.## |
|00003c70| 54 68 65 20 43 4f 41 53 | 54 20 50 72 6f 6a 65 63 |The COAS|T Projec|
|00003c80| 74 0a 23 23 20 44 65 70 | 61 72 74 6d 65 6e 74 20 |t.## Dep|artment |
|00003c90| 6f 66 20 43 6f 6d 70 75 | 74 65 72 20 53 63 69 65 |of Compu|ter Scie|
|00003ca0| 6e 63 65 73 0a 23 23 20 | 50 75 72 64 75 65 20 55 |nces.## |Purdue U|
|00003cb0| 6e 69 76 65 72 73 69 74 | 79 0a 23 23 0a 0a 23 23 |niversit|y.##..##|
|00003cc0| 20 20 41 6c 6c 20 66 69 | 6c 65 73 20 69 6e 20 74 | All fi|les in t|
|00003cd0| 68 65 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 20 |he distr|ibution |
|00003ce0| 6f 66 20 54 72 69 70 77 | 69 72 65 20 61 72 65 20 |of Tripw|ire are |
|00003cf0| 43 6f 70 79 72 69 67 68 | 74 20 31 39 39 32 20 62 |Copyrigh|t 1992 b|
|00003d00| 79 20 74 68 65 0a 23 23 | 20 20 50 75 72 64 75 65 |y the.##| Purdue|
|00003d10| 20 52 65 73 65 61 72 63 | 68 20 46 6f 75 6e 64 61 | Researc|h Founda|
|00003d20| 74 69 6f 6e 20 6f 66 20 | 50 75 72 64 75 65 20 55 |tion of |Purdue U|
|00003d30| 6e 69 76 65 72 73 69 74 | 79 2e 20 20 41 6c 6c 20 |niversit|y. All |
|00003d40| 72 69 67 68 74 73 0a 23 | 23 20 20 72 65 73 65 72 |rights.#|# reser|
|00003d50| 76 65 64 2e 20 20 53 6f | 6d 65 20 69 6e 64 69 76 |ved. So|me indiv|
|00003d60| 69 64 75 61 6c 20 66 69 | 6c 65 73 20 69 6e 20 74 |idual fi|les in t|
|00003d70| 68 69 73 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |his dist|ribution|
|00003d80| 20 6d 61 79 20 62 65 20 | 63 6f 76 65 72 65 64 0a | may be |covered.|
|00003d90| 23 23 20 20 62 79 20 6f | 74 68 65 72 20 63 6f 70 |## by o|ther cop|
|00003da0| 79 72 69 67 68 74 73 2c | 20 61 73 20 6e 6f 74 65 |yrights,| as note|
|00003db0| 64 20 69 6e 20 74 68 65 | 69 72 20 65 6d 62 65 64 |d in the|ir embed|
|00003dc0| 64 65 64 20 63 6f 6d 6d | 65 6e 74 73 2e 0a 23 23 |ded comm|ents..##|
|00003dd0| 20 20 0a 23 23 20 20 52 | 65 64 69 73 74 72 69 62 | .## R|edistrib|
|00003de0| 75 74 69 6f 6e 20 61 6e | 64 20 75 73 65 20 69 6e |ution an|d use in|
|00003df0| 20 73 6f 75 72 63 65 20 | 61 6e 64 20 62 69 6e 61 | source |and bina|
|00003e00| 72 79 20 66 6f 72 6d 73 | 20 61 72 65 20 70 65 72 |ry forms| are per|
|00003e10| 6d 69 74 74 65 64 0a 23 | 23 20 20 70 72 6f 76 69 |mitted.#|# provi|
|00003e20| 64 65 64 20 74 68 61 74 | 20 74 68 69 73 20 65 6e |ded that| this en|
|00003e30| 74 69 72 65 20 63 6f 70 | 79 72 69 67 68 74 20 6e |tire cop|yright n|
|00003e40| 6f 74 69 63 65 20 69 73 | 20 64 75 70 6c 69 63 61 |otice is| duplica|
|00003e50| 74 65 64 20 69 6e 20 61 | 6c 6c 20 73 75 63 68 0a |ted in a|ll such.|
|00003e60| 23 23 20 20 63 6f 70 69 | 65 73 2c 20 61 6e 64 20 |## copi|es, and |
|00003e70| 74 68 61 74 20 61 6e 79 | 20 64 6f 63 75 6d 65 6e |that any| documen|
|00003e80| 74 61 74 69 6f 6e 2c 20 | 61 6e 6e 6f 75 6e 63 65 |tation, |announce|
|00003e90| 6d 65 6e 74 73 2c 20 61 | 6e 64 20 6f 74 68 65 72 |ments, a|nd other|
|00003ea0| 0a 23 23 20 20 6d 61 74 | 65 72 69 61 6c 73 20 72 |.## mat|erials r|
|00003eb0| 65 6c 61 74 65 64 20 74 | 6f 20 73 75 63 68 20 64 |elated t|o such d|
|00003ec0| 69 73 74 72 69 62 75 74 | 69 6f 6e 20 61 6e 64 20 |istribut|ion and |
|00003ed0| 75 73 65 20 61 63 6b 6e | 6f 77 6c 65 64 67 65 20 |use ackn|owledge |
|00003ee0| 74 68 61 74 20 74 68 65 | 0a 23 23 20 20 73 6f 66 |that the|.## sof|
|00003ef0| 74 77 61 72 65 20 77 61 | 73 20 64 65 76 65 6c 6f |tware wa|s develo|
|00003f00| 70 65 64 20 61 74 20 50 | 75 72 64 75 65 20 55 6e |ped at P|urdue Un|
|00003f10| 69 76 65 72 73 69 74 79 | 2c 20 57 2e 20 4c 61 66 |iversity|, W. Laf|
|00003f20| 61 79 65 74 74 65 2c 20 | 49 4e 20 62 79 0a 23 23 |ayette, |IN by.##|
|00003f30| 20 20 47 65 6e 65 20 4b | 69 6d 20 61 6e 64 20 45 | Gene K|im and E|
|00003f40| 75 67 65 6e 65 20 53 70 | 61 66 66 6f 72 64 2e 20 |ugene Sp|afford. |
|00003f50| 20 4e 6f 20 63 68 61 72 | 67 65 2c 20 6f 74 68 65 | No char|ge, othe|
|00003f60| 72 20 74 68 61 6e 20 61 | 6e 20 22 61 74 2d 63 6f |r than a|n "at-co|
|00003f70| 73 74 22 0a 23 23 20 20 | 64 69 73 74 72 69 62 75 |st".## |distribu|
|00003f80| 74 69 6f 6e 20 66 65 65 | 2c 20 6d 61 79 20 62 65 |tion fee|, may be|
|00003f90| 20 63 68 61 72 67 65 64 | 20 66 6f 72 20 63 6f 70 | charged| for cop|
|00003fa0| 69 65 73 2c 20 64 65 72 | 69 76 61 74 69 6f 6e 73 |ies, der|ivations|
|00003fb0| 2c 20 6f 72 0a 23 23 20 | 20 64 69 73 74 72 69 62 |, or.## | distrib|
|00003fc0| 75 74 69 6f 6e 73 20 6f | 66 20 74 68 69 73 20 6d |utions o|f this m|
|00003fd0| 61 74 65 72 69 61 6c 20 | 77 69 74 68 6f 75 74 20 |aterial |without |
|00003fe0| 74 68 65 20 65 78 70 72 | 65 73 73 20 77 72 69 74 |the expr|ess writ|
|00003ff0| 74 65 6e 20 63 6f 6e 73 | 65 6e 74 0a 23 23 20 20 |ten cons|ent.## |
|00004000| 6f 66 20 74 68 65 20 63 | 6f 70 79 72 69 67 68 74 |of the c|opyright|
|00004010| 20 68 6f 6c 64 65 72 2e | 20 20 4e 65 69 74 68 65 | holder.| Neithe|
|00004020| 72 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |r the na|me of th|
|00004030| 65 20 55 6e 69 76 65 72 | 73 69 74 79 20 6e 6f 72 |e Univer|sity nor|
|00004040| 20 74 68 65 0a 23 23 20 | 20 6e 61 6d 65 73 20 6f | the.## | names o|
|00004050| 66 20 74 68 65 20 61 75 | 74 68 6f 72 73 20 6d 61 |f the au|thors ma|
|00004060| 79 20 62 65 20 75 73 65 | 64 20 74 6f 20 65 6e 64 |y be use|d to end|
|00004070| 6f 72 73 65 20 6f 72 20 | 70 72 6f 6d 6f 74 65 20 |orse or |promote |
|00004080| 70 72 6f 64 75 63 74 73 | 0a 23 23 20 20 64 65 72 |products|.## der|
|00004090| 69 76 65 64 20 66 72 6f | 6d 20 74 68 69 73 20 6d |ived fro|m this m|
|000040a0| 61 74 65 72 69 61 6c 20 | 77 69 74 68 6f 75 74 20 |aterial |without |
|000040b0| 73 70 65 63 69 66 69 63 | 20 70 72 69 6f 72 20 77 |specific| prior w|
|000040c0| 72 69 74 74 65 6e 0a 23 | 23 20 20 70 65 72 6d 69 |ritten.#|# permi|
|000040d0| 73 73 69 6f 6e 2e 20 20 | 54 48 49 53 20 53 4f 46 |ssion. |THIS SOF|
|000040e0| 54 57 41 52 45 20 49 53 | 20 50 52 4f 56 49 44 45 |TWARE IS| PROVIDE|
|000040f0| 44 20 60 60 41 53 20 49 | 53 27 27 20 41 4e 44 20 |D ``AS I|S'' AND |
|00004100| 57 49 54 48 4f 55 54 20 | 41 4e 59 0a 23 23 20 20 |WITHOUT |ANY.## |
|00004110| 45 58 50 52 45 53 53 20 | 4f 52 20 49 4d 50 4c 49 |EXPRESS |OR IMPLI|
|00004120| 45 44 20 57 41 52 52 41 | 4e 54 49 45 53 2c 20 49 |ED WARRA|NTIES, I|
|00004130| 4e 43 4c 55 44 49 4e 47 | 2c 20 57 49 54 48 4f 55 |NCLUDING|, WITHOU|
|00004140| 54 20 4c 49 4d 49 54 41 | 54 49 4f 4e 2c 20 54 48 |T LIMITA|TION, TH|
|00004150| 45 0a 23 23 20 20 49 4d | 50 4c 49 45 44 20 57 41 |E.## IM|PLIED WA|
|00004160| 52 52 41 4e 54 49 45 53 | 20 4f 46 20 4d 45 52 43 |RRANTIES| OF MERC|
|00004170| 48 41 4e 54 41 42 49 4c | 49 54 59 20 41 4e 44 20 |HANTABIL|ITY AND |
|00004180| 46 49 54 4e 45 53 53 20 | 46 4f 52 20 41 4e 59 20 |FITNESS |FOR ANY |
|00004190| 50 41 52 54 49 43 55 4c | 41 52 0a 23 23 20 20 50 |PARTICUL|AR.## P|
|000041a0| 55 52 50 4f 53 45 2e 0a | 0a 20 20 20 20 54 68 69 |URPOSE..|. Thi|
|000041b0| 73 20 52 45 41 44 4d 45 | 20 66 69 6c 65 20 73 65 |s README| file se|
|000041c0| 72 76 65 73 20 61 73 20 | 61 20 71 75 69 63 6b 2d |rves as |a quick-|
|000041d0| 61 6e 64 2d 64 69 72 74 | 79 20 70 72 69 6d 65 72 |and-dirt|y primer|
|000041e0| 20 6f 6e 20 54 72 69 70 | 77 69 72 65 2e 0a 41 20 | on Trip|wire..A |
|000041f0| 70 61 70 65 72 20 74 68 | 61 74 20 66 75 6c 6c 79 |paper th|at fully|
|00004200| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 64 | describ|es the d|
|00004210| 65 73 69 67 6e 20 61 6e | 64 20 72 61 74 69 6f 6e |esign an|d ration|
|00004220| 61 6c 65 20 77 61 73 20 | 6e 6f 74 0a 63 6f 6d 70 |ale was |not.comp|
|00004230| 6c 65 74 65 64 20 69 6e | 20 74 69 6d 65 20 74 6f |leted in| time to|
|00004240| 20 62 65 20 69 6e 63 6c | 75 64 65 64 20 69 6e 20 | be incl|uded in |
|00004250| 74 68 69 73 20 66 69 72 | 73 74 20 54 72 69 70 77 |this fir|st Tripw|
|00004260| 69 72 65 20 72 65 6c 65 | 61 73 65 2e 20 20 54 68 |ire rele|ase. Th|
|00004270| 65 0a 64 65 73 69 67 6e | 20 64 6f 63 75 6d 65 6e |e.design| documen|
|00004280| 74 20 77 69 6c 6c 20 62 | 65 20 72 65 6c 65 61 73 |t will b|e releas|
|00004290| 65 64 20 6c 61 74 65 72 | 20 61 73 20 61 20 74 65 |ed later| as a te|
|000042a0| 63 68 6e 69 63 61 6c 20 | 72 65 70 6f 72 74 2c 20 |chnical |report, |
|000042b0| 61 6e 64 0a 70 6f 73 73 | 69 62 6c 79 20 61 73 20 |and.poss|ibly as |
|000042c0| 61 20 63 6f 6e 66 65 72 | 65 6e 63 65 20 6f 72 20 |a confer|ence or |
|000042d0| 6a 6f 75 72 6e 61 6c 20 | 70 61 70 65 72 2e 20 20 |journal |paper. |
|000042e0| 49 74 20 77 69 6c 6c 20 | 61 6c 73 6f 20 62 65 20 |It will |also be |
|000042f0| 69 6e 63 6c 75 64 65 64 | 0a 69 6e 20 6c 61 74 65 |included|.in late|
|00004300| 72 20 72 65 6c 65 61 73 | 65 73 20 6f 66 20 54 72 |r releas|es of Tr|
|00004310| 69 70 77 69 72 65 2e 20 | 20 54 68 69 73 20 64 6f |ipwire. | This do|
|00004320| 63 75 6d 65 6e 74 20 77 | 69 6c 6c 20 62 65 20 72 |cument w|ill be r|
|00004330| 65 66 65 72 65 6e 63 65 | 64 0a 74 68 72 6f 75 67 |eference|d.throug|
|00004340| 68 6f 75 74 20 74 68 65 | 20 54 72 69 70 77 69 72 |hout the| Tripwir|
|00004350| 65 20 64 69 73 74 72 69 | 62 75 74 69 6f 6e 20 61 |e distri|bution a|
|00004360| 73 20 74 68 65 20 54 72 | 69 70 77 69 72 65 20 64 |s the Tr|ipwire d|
|00004370| 65 73 69 67 6e 20 64 6f | 63 75 6d 65 6e 74 0a 6f |esign do|cument.o|
|00004380| 72 20 74 68 65 20 63 6f | 6d 70 72 65 68 65 6e 73 |r the co|mprehens|
|00004390| 69 76 65 20 54 72 69 70 | 77 69 72 65 20 70 61 70 |ive Trip|wire pap|
|000043a0| 65 72 2e 0a 0a 20 20 20 | 20 54 68 69 73 20 52 45 |er... | This RE|
|000043b0| 41 44 4d 45 20 66 69 6c | 65 20 63 6f 6e 74 61 69 |ADME fil|e contai|
|000043c0| 6e 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6e |ns infor|mation n|
|000043d0| 65 65 64 65 64 20 74 6f | 20 62 75 69 6c 64 2c 20 |eeded to| build, |
|000043e0| 74 65 73 74 2c 0a 61 6e | 64 20 72 75 6e 20 54 72 |test,.an|d run Tr|
|000043f0| 69 70 77 69 72 65 2e 20 | 20 41 20 74 61 62 6c 65 |ipwire. | A table|
|00004400| 20 6f 66 20 63 6f 6e 74 | 65 6e 74 73 20 66 6f 6c | of cont|ents fol|
|00004410| 6c 6f 77 3a 0a 0a 0a 09 | 20 20 20 20 31 2e 30 2e |low:....| 1.0.|
|00004420| 20 20 42 61 63 6b 67 72 | 6f 75 6e 64 0a 09 20 20 | Backgr|ound.. |
|00004430| 20 20 31 2e 31 2e 20 20 | 47 6f 61 6c 73 20 6f 66 | 1.1. |Goals of|
|00004440| 20 54 72 69 70 77 69 72 | 65 0a 09 20 20 20 20 32 | Tripwir|e.. 2|
|00004450| 2e 30 2e 20 20 48 6f 77 | 20 74 6f 20 62 75 69 6c |.0. How| to buil|
|00004460| 64 20 54 72 69 70 77 69 | 72 65 0a 09 20 20 20 20 |d Tripwi|re.. |
|00004470| 32 2e 31 2e 20 20 43 6f | 6d 6d 6f 6e 20 54 72 69 |2.1. Co|mmon Tri|
|00004480| 70 77 69 72 65 20 63 6f | 6d 70 69 6c 61 74 69 6f |pwire co|mpilatio|
|00004490| 6e 20 70 72 6f 62 6c 65 | 6d 73 0a 09 20 20 20 20 |n proble|ms.. |
|000044a0| 32 2e 32 2e 20 20 54 68 | 65 20 73 69 67 66 65 74 |2.2. Th|e sigfet|
|000044b0| 63 68 20 75 74 69 6c 69 | 74 79 0a 09 20 20 20 20 |ch utili|ty.. |
|000044c0| 33 2e 30 2e 20 20 47 65 | 74 74 69 6e 67 20 54 72 |3.0. Ge|tting Tr|
|000044d0| 69 70 77 69 72 65 20 75 | 70 20 61 6e 64 20 72 75 |ipwire u|p and ru|
|000044e0| 6e 6e 69 6e 67 0a 09 20 | 20 20 20 33 2e 31 2e 20 |nning.. | 3.1. |
|000044f0| 20 43 72 65 61 74 69 6e | 67 20 79 6f 75 72 20 74 | Creatin|g your t|
|00004500| 77 2e 63 6f 6e 66 69 67 | 20 66 69 6c 65 0a 09 20 |w.config| file.. |
|00004510| 20 20 20 33 2e 32 2e 20 | 20 41 20 63 61 76 65 61 | 3.2. | A cavea|
|00004520| 74 20 61 62 6f 75 74 20 | 79 6f 75 72 20 54 72 69 |t about |your Tri|
|00004530| 70 77 69 72 65 20 64 61 | 74 61 62 61 73 65 0a 09 |pwire da|tabase..|
|00004540| 20 20 20 20 33 2e 32 2e | 20 20 52 75 6e 6e 69 6e | 3.2.| Runnin|
|00004550| 67 20 54 72 69 70 77 69 | 72 65 20 61 73 20 61 6e |g Tripwi|re as an|
|00004560| 20 69 6e 74 65 67 72 69 | 74 79 20 63 68 65 63 6b | integri|ty check|
|00004570| 65 72 0a 09 20 20 20 20 | 33 2e 33 2e 20 20 4b 65 |er.. |3.3. Ke|
|00004580| 65 70 69 6e 67 20 79 6f | 75 72 20 64 61 74 61 62 |eping yo|ur datab|
|00004590| 61 73 65 20 75 70 2d 74 | 6f 2d 64 61 74 65 0a 09 |ase up-t|o-date..|
|000045a0| 20 20 20 20 33 2e 34 2e | 20 20 41 20 71 75 69 63 | 3.4.| A quic|
|000045b0| 6b 2d 63 68 65 63 6b 69 | 6e 67 20 6d 6f 64 65 0a |k-checki|ng mode.|
|000045c0| 09 20 20 20 20 34 2e 30 | 2e 20 20 53 6f 6d 65 20 |. 4.0|. Some |
|000045d0| 54 72 69 70 77 69 72 65 | 20 73 63 61 6c 69 6e 67 |Tripwire| scaling|
|000045e0| 20 68 69 6e 74 73 20 66 | 6f 72 20 75 73 69 6e 67 | hints f|or using|
|000045f0| 20 54 72 69 70 77 69 72 | 65 20 0a 09 09 20 20 20 | Tripwir|e ... |
|00004600| 20 69 6e 20 6c 61 72 67 | 65 20 73 69 74 65 73 0a | in larg|e sites.|
|00004610| 09 20 20 20 20 34 2e 31 | 2e 20 20 54 68 65 20 74 |. 4.1|. The t|
|00004620| 77 2e 63 6f 6e 66 69 67 | 20 67 72 61 6d 6d 61 72 |w.config| grammar|
|00004630| 0a 09 20 20 20 20 34 2e | 32 2e 20 20 48 6f 77 20 |.. 4.|2. How |
|00004640| 79 6f 75 20 6d 69 67 68 | 74 20 75 73 65 20 74 68 |you migh|t use th|
|00004650| 65 73 65 20 64 69 72 65 | 63 74 69 76 65 73 0a 09 |ese dire|ctives..|
|00004660| 20 20 20 20 35 2e 30 2e | 20 20 4e 6f 74 65 73 20 | 5.0.| Notes |
|00004670| 6f 6e 20 73 69 67 6e 61 | 74 75 72 65 20 72 6f 75 |on signa|ture rou|
|00004680| 74 69 6e 65 73 0a 09 20 | 20 20 20 35 2e 31 2e 20 |tines.. | 5.1. |
|00004690| 20 50 65 72 66 6f 72 6d | 61 6e 63 65 20 76 73 2e | Perform|ance vs.|
|000046a0| 20 73 65 63 75 72 69 74 | 79 0a 09 20 20 20 20 36 | securit|y.. 6|
|000046b0| 2e 30 2e 20 20 53 69 67 | 6e 61 74 75 72 65 20 72 |.0. Sig|nature r|
|000046c0| 6f 75 74 69 6e 65 73 0a | 09 20 20 20 20 36 2e 31 |outines.|. 6.1|
|000046d0| 2e 20 20 4d 44 35 0a 09 | 20 20 20 20 36 2e 32 2e |. MD5..| 6.2.|
|000046e0| 20 20 53 6e 65 66 72 75 | 0a 09 20 20 20 20 36 2e | Snefru|.. 6.|
|000046f0| 33 2e 20 20 43 52 43 2d | 33 32 0a 09 20 20 20 20 |3. CRC-|32.. |
|00004700| 36 2e 34 2e 20 20 43 52 | 43 2d 31 36 0a 09 20 20 |6.4. CR|C-16.. |
|00004710| 20 20 36 2e 35 2e 20 20 | 4d 44 34 0a 09 20 20 20 | 6.5. |MD4.. |
|00004720| 20 36 2e 36 2e 20 20 4d | 44 32 0a 09 20 20 20 20 | 6.6. M|D2.. |
|00004730| 36 2e 37 2e 20 20 6e 75 | 6c 6c 20 73 69 67 6e 61 |6.7. nu|ll signa|
|00004740| 74 75 72 65 0a 09 20 20 | 20 20 37 2e 30 2e 20 20 |ture.. | 7.0. |
|00004750| 46 65 65 64 62 61 63 6b | 20 61 6e 64 20 62 75 67 |Feedback| and bug|
|00004760| 2d 72 65 70 6f 72 74 73 | 0a 09 20 20 20 20 38 2e |-reports|.. 8.|
|00004770| 30 2e 20 20 55 73 65 72 | 20 63 6f 6e 74 72 69 62 |0. User| contrib|
|00004780| 75 74 69 6f 6e 73 0a 09 | 20 20 20 20 39 2e 30 2e |utions..| 9.0.|
|00004790| 20 20 41 63 6b 6e 6f 77 | 6c 65 64 67 65 6d 65 6e | Acknow|ledgemen|
|000047a0| 74 73 0a 0a 0a 31 2e 30 | 2e 20 20 42 61 63 6b 67 |ts...1.0|. Backg|
|000047b0| 72 6f 75 6e 64 0a 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |round.==|========|
|000047c0| 3d 3d 3d 3d 3d 3d 0a 0a | 20 20 20 20 57 69 74 68 |======..| With|
|000047d0| 20 74 68 65 20 61 64 76 | 65 6e 74 20 6f 66 20 69 | the adv|ent of i|
|000047e0| 6e 63 72 65 61 73 69 6e | 67 6c 79 20 73 6f 70 68 |ncreasin|gly soph|
|000047f0| 69 73 74 69 63 61 74 65 | 64 20 61 6e 64 20 73 75 |isticate|d and su|
|00004800| 62 74 6c 65 0a 61 63 63 | 6f 75 6e 74 20 62 72 65 |btle.acc|ount bre|
|00004810| 61 6b 2d 69 6e 73 20 6f | 6e 20 55 6e 69 78 20 73 |ak-ins o|n Unix s|
|00004820| 79 73 74 65 6d 73 2c 20 | 74 68 65 20 6e 65 65 64 |ystems, |the need|
|00004830| 20 66 6f 72 20 74 6f 6f | 6c 73 20 74 6f 20 61 69 | for too|ls to ai|
|00004840| 64 20 69 6e 0a 74 68 65 | 20 64 65 74 65 63 74 69 |d in.the| detecti|
|00004850| 6f 6e 20 6f 66 20 75 6e | 61 75 74 68 6f 72 69 7a |on of un|authoriz|
|00004860| 65 64 20 6d 6f 64 69 66 | 69 63 61 74 69 6f 6e 20 |ed modif|ication |
|00004870| 6f 66 20 66 69 6c 65 73 | 20 62 65 63 6f 6d 65 73 |of files| becomes|
|00004880| 0a 63 6c 65 61 72 2e 20 | 20 54 72 69 70 77 69 72 |.clear. | Tripwir|
|00004890| 65 20 69 73 20 61 20 74 | 6f 6f 6c 20 74 68 61 74 |e is a t|ool that|
|000048a0| 20 61 69 64 73 20 73 79 | 73 74 65 6d 20 61 64 6d | aids sy|stem adm|
|000048b0| 69 6e 69 73 74 72 61 74 | 6f 72 73 20 61 6e 64 0a |inistrat|ors and.|
|000048c0| 75 73 65 72 73 20 69 6e | 20 6d 6f 6e 69 74 6f 72 |users in| monitor|
|000048d0| 69 6e 67 20 61 20 64 65 | 73 69 67 6e 61 74 65 64 |ing a de|signated|
|000048e0| 20 73 65 74 20 6f 66 20 | 66 69 6c 65 73 20 66 6f | set of |files fo|
|000048f0| 72 20 61 6e 79 20 63 68 | 61 6e 67 65 73 2e 0a 55 |r any ch|anges..U|
|00004900| 73 65 64 20 77 69 74 68 | 20 73 79 73 74 65 6d 20 |sed with| system |
|00004910| 66 69 6c 65 73 20 6f 6e | 20 61 20 72 65 67 75 6c |files on| a regul|
|00004920| 61 72 20 28 65 2e 67 2e | 2c 20 64 61 69 6c 79 29 |ar (e.g.|, daily)|
|00004930| 20 62 61 73 69 73 2c 20 | 54 72 69 70 77 69 72 65 | basis, |Tripwire|
|00004940| 0a 63 61 6e 20 6e 6f 74 | 69 66 79 20 73 79 73 74 |.can not|ify syst|
|00004950| 65 6d 20 61 64 6d 69 6e | 69 73 74 72 61 74 6f 72 |em admin|istrator|
|00004960| 73 20 6f 66 20 63 6f 72 | 72 75 70 74 65 64 20 6f |s of cor|rupted o|
|00004970| 72 20 74 61 6d 70 65 72 | 65 64 20 66 69 6c 65 73 |r tamper|ed files|
|00004980| 2c 0a 73 6f 20 64 61 6d | 61 67 65 20 63 6f 6e 74 |,.so dam|age cont|
|00004990| 72 6f 6c 20 6d 65 61 73 | 75 72 65 73 20 63 61 6e |rol meas|ures can|
|000049a0| 20 62 65 20 74 61 6b 65 | 6e 20 69 6e 20 61 20 74 | be take|n in a t|
|000049b0| 69 6d 65 6c 79 20 6d 61 | 6e 6e 65 72 2e 0a 0a 31 |imely ma|nner...1|
|000049c0| 2e 31 2e 20 20 47 6f 61 | 6c 73 20 6f 66 20 54 72 |.1. Goa|ls of Tr|
|000049d0| 69 70 77 69 72 65 0a 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ipwire.=|========|
|000049e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0a 0a |========|======..|
|000049f0| 20 20 20 20 54 72 69 70 | 77 69 72 65 20 69 73 20 | Trip|wire is |
|00004a00| 61 20 66 69 6c 65 20 69 | 6e 74 65 67 72 69 74 79 |a file i|ntegrity|
|00004a10| 20 63 68 65 63 6b 65 72 | 2c 20 61 20 75 74 69 6c | checker|, a util|
|00004a20| 69 74 79 20 74 68 61 74 | 20 63 6f 6d 70 61 72 65 |ity that| compare|
|00004a30| 73 0a 61 20 64 65 73 69 | 67 6e 61 74 65 64 20 73 |s.a desi|gnated s|
|00004a40| 65 74 20 6f 66 20 66 69 | 6c 65 73 20 61 67 61 69 |et of fi|les agai|
|00004a50| 6e 73 74 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |nst info|rmation |
|00004a60| 73 74 6f 72 65 64 20 69 | 6e 20 61 0a 70 72 65 76 |stored i|n a.prev|
|00004a70| 69 6f 75 73 6c 79 20 67 | 65 6e 65 72 61 74 65 64 |iously g|enerated|
|00004a80| 20 64 61 74 61 62 61 73 | 65 2e 20 20 41 6e 79 20 | databas|e. Any |
|00004a90| 64 69 66 66 65 72 65 6e | 63 65 73 20 61 72 65 20 |differen|ces are |
|00004aa0| 66 6c 61 67 67 65 64 20 | 61 6e 64 0a 6c 6f 67 67 |flagged |and.logg|
|00004ab0| 65 64 2c 20 61 6e 64 20 | 6f 70 74 69 6f 6e 61 6c |ed, and |optional|
|00004ac0| 6c 79 2c 20 61 20 75 73 | 65 72 20 69 73 20 6e 6f |ly, a us|er is no|
|00004ad0| 74 69 66 69 65 64 20 74 | 68 72 6f 75 67 68 20 6d |tified t|hrough m|
|00004ae0| 61 69 6c 2e 20 20 57 68 | 65 6e 0a 72 75 6e 20 61 |ail. Wh|en.run a|
|00004af0| 67 61 69 6e 73 74 20 73 | 79 73 74 65 6d 20 66 69 |gainst s|ystem fi|
|00004b00| 6c 65 73 20 6f 6e 20 61 | 20 72 65 67 75 6c 61 72 |les on a| regular|
|00004b10| 20 62 61 73 69 73 2c 20 | 61 6e 79 20 63 68 61 6e | basis, |any chan|
|00004b20| 67 65 73 20 69 6e 0a 63 | 72 69 74 69 63 61 6c 20 |ges in.c|ritical |
|00004b30| 73 79 73 74 65 6d 20 66 | 69 6c 65 73 20 77 69 6c |system f|iles wil|
|00004b40| 6c 20 62 65 20 73 70 6f | 74 74 65 64 20 2d 2d 20 |l be spo|tted -- |
|00004b50| 61 6e 64 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |and appr|opriate |
|00004b60| 64 61 6d 61 67 65 0a 63 | 6f 6e 74 72 6f 6c 20 6d |damage.c|ontrol m|
|00004b70| 65 61 73 75 72 65 73 20 | 63 61 6e 20 62 65 20 74 |easures |can be t|
|00004b80| 61 6b 65 6e 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |aken imm|ediately|
|00004b90| 2e 20 20 57 69 74 68 20 | 54 72 69 70 77 69 72 65 |. With |Tripwire|
|00004ba0| 2c 20 73 79 73 74 65 6d | 0a 61 64 6d 69 6e 69 73 |, system|.adminis|
|00004bb0| 74 72 61 74 6f 72 73 20 | 63 61 6e 20 63 6f 6e 63 |trators |can conc|
|00004bc0| 6c 75 64 65 20 77 69 74 | 68 20 61 20 68 69 67 68 |lude wit|h a high|
|00004bd0| 20 64 65 67 72 65 65 20 | 6f 66 20 63 65 72 74 61 | degree |of certa|
|00004be0| 69 6e 74 79 20 74 68 61 | 74 0a 61 20 67 69 76 65 |inty tha|t.a give|
|00004bf0| 6e 20 73 65 74 20 6f 66 | 20 66 69 6c 65 73 20 72 |n set of| files r|
|00004c00| 65 6d 61 69 6e 20 66 72 | 65 65 20 6f 66 20 75 6e |emain fr|ee of un|
|00004c10| 61 75 74 68 6f 72 69 7a | 65 64 0a 6d 6f 64 69 66 |authoriz|ed.modif|
|00004c20| 69 63 61 74 69 6f 6e 73 | 20 69 66 20 54 72 69 70 |ications| if Trip|
|00004c30| 77 69 72 65 20 72 65 70 | 6f 72 74 73 20 6e 6f 20 |wire rep|orts no |
|00004c40| 63 68 61 6e 67 65 73 2e | 0a 0a 0a 32 2e 30 2e 20 |changes.|...2.0. |
|00004c50| 20 48 6f 77 20 74 6f 20 | 62 75 69 6c 64 20 54 72 | How to |build Tr|
|00004c60| 69 70 77 69 72 65 0a 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ipwire.=|========|
|00004c70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004c80| 3d 3d 0a 0a 20 20 20 20 | 41 73 20 6f 66 20 74 68 |==.. |As of th|
|00004c90| 69 73 20 77 72 69 74 69 | 6e 67 2c 20 54 72 69 70 |is writi|ng, Trip|
|00004ca0| 77 69 72 65 20 68 61 73 | 20 72 75 6e 20 73 75 63 |wire has| run suc|
|00004cb0| 63 65 73 73 66 75 6c 6c | 79 20 6f 6e 20 28 61 74 |cessfull|y on (at|
|00004cc0| 20 6c 65 61 73 74 29 0a | 42 53 44 2c 20 4f 53 46 | least).|BSD, OSF|
|00004cd0| 2f 31 2c 20 4d 61 63 68 | 2c 20 61 6e 64 20 6c 61 |/1, Mach|, and la|
|00004ce0| 74 65 20 53 79 73 74 65 | 6d 20 56 20 76 61 72 69 |te Syste|m V vari|
|00004cf0| 61 6e 74 73 20 6f 66 20 | 55 6e 69 78 2e 20 20 54 |ants of |Unix. T|
|00004d00| 72 69 70 77 69 72 65 20 | 77 61 73 0a 62 75 69 6c |ripwire |was.buil|
|00004d10| 74 20 61 6e 64 20 74 65 | 73 74 65 64 20 6f 6e 20 |t and te|sted on |
|00004d20| 61 20 77 69 64 65 20 76 | 61 72 69 65 74 79 20 6f |a wide v|ariety o|
|00004d30| 66 20 55 6e 69 78 20 76 | 61 72 69 61 6e 74 73 2e |f Unix v|ariants.|
|00004d40| 0a 0a 20 20 20 20 54 68 | 65 20 66 69 6c 65 20 27 |.. Th|e file '|
|00004d50| 50 6f 72 74 65 64 27 20 | 63 6f 6e 74 61 69 6e 73 |Ported' |contains|
|00004d60| 20 61 20 6c 69 73 74 20 | 6f 66 20 70 6c 61 74 66 | a list |of platf|
|00004d70| 6f 72 6d 73 20 61 6e 64 | 20 6f 70 65 72 61 74 69 |orms and| operati|
|00004d80| 6e 67 0a 73 79 73 74 65 | 6d 73 20 77 68 65 72 65 |ng.syste|ms where|
|00004d90| 20 54 72 69 70 77 69 72 | 65 20 68 61 73 20 61 6c | Tripwir|e has al|
|00004da0| 72 65 61 64 79 20 62 65 | 65 6e 20 73 75 63 63 65 |ready be|en succe|
|00004db0| 73 73 66 75 6c 6c 79 20 | 70 6f 72 74 65 64 20 64 |ssfully |ported d|
|00004dc0| 75 72 69 6e 67 0a 74 68 | 65 20 73 69 78 2d 77 65 |uring.th|e six-we|
|00004dd0| 65 6b 20 62 65 74 61 20 | 74 65 73 74 20 70 65 72 |ek beta |test per|
|00004de0| 69 6f 64 2e 20 20 49 66 | 20 79 6f 75 20 66 69 6e |iod. If| you fin|
|00004df0| 64 20 79 6f 75 72 20 73 | 79 73 74 65 6d 20 69 6e |d your s|ystem in|
|00004e00| 20 74 68 65 0a 6c 69 73 | 74 2c 20 6e 6f 74 65 20 | the.lis|t, note |
|00004e10| 74 68 65 20 73 79 73 74 | 65 6d 20 73 65 74 74 69 |the syst|em setti|
|00004e20| 6e 67 73 20 74 68 61 74 | 20 77 65 72 65 20 75 73 |ngs that| were us|
|00004e30| 65 64 20 74 6f 20 62 75 | 69 6c 64 20 54 72 69 70 |ed to bu|ild Trip|
|00004e40| 77 69 72 65 2e 0a 0a 20 | 20 20 20 53 65 63 6f 6e |wire... | Secon|
|00004e50| 64 2c 20 6c 6f 6f 6b 20 | 74 68 72 6f 75 67 68 20 |d, look |through |
|00004e60| 74 68 65 20 4d 61 6b 65 | 66 69 6c 65 20 61 6e 64 |the Make|file and|
|00004e70| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 68 61 74 20 | make su|re that |
|00004e80| 74 68 65 20 43 0a 63 6f | 6d 70 69 6c 65 72 20 61 |the C.co|mpiler a|
|00004e90| 6e 64 20 61 6c 6c 20 66 | 6c 61 67 20 73 65 74 74 |nd all f|lag sett|
|00004ea0| 69 6e 67 73 20 61 72 65 | 20 72 65 61 73 6f 6e 61 |ings are| reasona|
|00004eb0| 62 6c 65 20 66 6f 72 20 | 79 6f 75 72 0a 63 6f 6e |ble for |your.con|
|00004ec0| 66 69 67 75 72 61 74 69 | 6f 6e 2e 20 20 4d 6f 73 |figurati|on. Mos|
|00004ed0| 74 20 6f 66 20 74 68 65 | 20 70 6f 74 65 6e 74 69 |t of the| potenti|
|00004ee0| 61 6c 6c 79 20 74 72 69 | 63 6b 79 20 73 79 73 74 |ally tri|cky syst|
|00004ef0| 65 6d 20 73 65 74 74 69 | 6e 67 73 0a 73 68 6f 75 |em setti|ngs.shou|
|00004f00| 6c 64 20 62 65 20 6c 69 | 73 74 65 64 20 69 6e 20 |ld be li|sted in |
|00004f10| 74 68 65 0a 27 50 6f 72 | 74 65 64 27 20 66 69 6c |the.'Por|ted' fil|
|00004f20| 65 2e 0a 0a 20 20 20 20 | 4e 65 78 74 2c 20 6c 6f |e... |Next, lo|
|00004f30| 6f 6b 20 69 6e 20 74 68 | 65 20 27 2e 2f 63 6f 6e |ok in th|e './con|
|00004f40| 66 69 67 73 27 20 64 69 | 72 65 63 74 6f 72 79 20 |figs' di|rectory |
|00004f50| 74 6f 20 66 69 6e 64 20 | 61 20 70 72 65 64 65 66 |to find |a predef|
|00004f60| 69 6e 65 64 0a 27 63 6f | 6e 66 2d 3c 6f 73 3e 2e |ined.'co|nf-<os>.|
|00004f70| 68 27 20 66 69 6c 65 20 | 74 68 61 74 20 6d 61 74 |h' file |that mat|
|00004f80| 63 68 65 73 20 63 6c 6f | 73 65 73 74 20 74 6f 20 |ches clo|sest to |
|00004f90| 79 6f 75 72 20 6f 70 65 | 72 61 74 69 6e 67 20 73 |your ope|rating s|
|00004fa0| 79 73 74 65 6d 2e 0a 4e | 6f 74 65 20 74 68 69 73 |ystem..N|ote this|
|00004fb0| 20 66 69 6c 65 2c 20 62 | 65 63 61 75 73 65 20 79 | file, b|ecause y|
|00004fc0| 6f 75 20 77 69 6c 6c 20 | 62 65 20 69 6e 73 65 72 |ou will |be inser|
|00004fd0| 74 69 6e 67 20 74 68 69 | 73 20 66 69 6c 65 6e 61 |ting thi|s filena|
|00004fe0| 6d 65 20 69 6e 0a 74 68 | 65 20 27 2e 2f 69 6e 63 |me in.th|e './inc|
|00004ff0| 6c 75 64 65 2f 63 6f 6e | 66 69 67 2e 68 27 20 66 |lude/con|fig.h' f|
|00005000| 69 6c 65 2e 20 20 49 66 | 20 6e 6f 20 73 75 63 68 |ile. If| no such|
|00005010| 20 66 69 6c 65 20 65 78 | 69 73 74 73 2c 20 70 69 | file ex|ists, pi|
|00005020| 63 6b 20 6f 6e 65 0a 22 | 6e 65 61 72 22 20 79 6f |ck one."|near" yo|
|00005030| 75 72 20 73 79 73 74 65 | 6d 20 74 79 70 65 20 61 |ur syste|m type a|
|00005040| 6e 64 20 6d 6f 64 69 66 | 79 20 61 70 70 72 6f 70 |nd modif|y approp|
|00005050| 72 69 61 74 65 6c 79 20 | 28 74 68 65 6e 20 6d 61 |riately |(then ma|
|00005060| 69 6c 20 69 74 20 62 61 | 63 6b 20 74 6f 0a 75 73 |il it ba|ck to.us|
|00005070| 20 66 6f 72 20 61 20 66 | 75 74 75 72 65 20 72 65 | for a f|uture re|
|00005080| 6c 65 61 73 65 29 2e 0a | 0a 20 20 20 20 4e 6f 77 |lease)..|. Now|
|00005090| 20 74 68 61 74 20 79 6f | 75 20 68 61 76 65 20 63 | that yo|u have c|
|000050a0| 68 6f 73 65 6e 20 79 6f | 75 72 20 6f 70 65 72 61 |hosen yo|ur opera|
|000050b0| 74 69 6e 67 20 73 79 73 | 74 65 6d 20 68 65 61 64 |ting sys|tem head|
|000050c0| 65 72 20 66 69 6c 65 2c | 20 65 64 69 74 0a 74 68 |er file,| edit.th|
|000050d0| 65 20 27 2e 2f 69 6e 63 | 6c 75 64 65 2f 63 6f 6e |e './inc|lude/con|
|000050e0| 66 69 67 2e 68 27 20 66 | 69 6c 65 20 74 6f 20 74 |fig.h' f|ile to t|
|000050f0| 61 69 6c 6f 72 20 54 72 | 69 70 77 69 72 65 20 74 |ailor Tr|ipwire t|
|00005100| 6f 20 79 6f 75 72 20 73 | 79 73 74 65 6d 2e 0a 49 |o your s|ystem..I|
|00005110| 6e 63 6c 75 64 65 20 74 | 68 65 20 6e 61 6d 65 20 |nclude t|he name |
|00005120| 6f 66 20 74 68 65 20 70 | 72 65 64 65 66 69 6e 65 |of the p|redefine|
|00005130| 64 20 68 65 61 64 65 72 | 20 66 69 6c 65 20 63 6c |d header| file cl|
|00005140| 6f 73 65 73 74 20 74 6f | 20 79 6f 75 72 20 73 79 |osest to| your sy|
|00005150| 73 74 65 6d 0a 61 74 20 | 74 68 65 20 61 70 70 72 |stem.at |the appr|
|00005160| 6f 70 72 69 61 74 65 20 | 6c 69 6e 65 20 69 6e 20 |opriate |line in |
|00005170| 63 6f 6e 66 69 67 2e 68 | 0a 0a 20 20 20 20 50 61 |config.h|.. Pa|
|00005180| 74 68 73 20 61 6e 64 20 | 6e 61 6d 65 73 20 6f 66 |ths and |names of|
|00005190| 20 54 72 69 70 77 69 72 | 65 20 63 6f 6e 66 69 67 | Tripwir|e config|
|000051a0| 75 72 61 74 69 6f 6e 20 | 66 69 6c 65 73 20 61 72 |uration |files ar|
|000051b0| 65 20 61 6c 73 6f 20 73 | 65 74 0a 69 6e 20 74 68 |e also s|et.in th|
|000051c0| 65 20 63 6f 6e 66 69 67 | 2e 68 20 66 69 6c 65 2e |e config|.h file.|
|000051d0| 20 20 4d 61 6b 65 20 73 | 75 72 65 20 79 6f 75 20 | Make s|ure you |
|000051e0| 6e 6f 74 65 20 74 68 65 | 20 6c 6f 63 61 74 69 6f |note the| locatio|
|000051f0| 6e 73 20 74 68 61 74 0a | 54 72 69 70 77 69 72 65 |ns that.|Tripwire|
|00005200| 20 6c 6f 6f 6b 73 20 66 | 6f 72 20 69 74 73 20 63 | looks f|or its c|
|00005210| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 61 6e 64 |onfigura|tion and|
|00005220| 20 64 61 74 61 62 61 73 | 65 20 66 69 6c 65 73 3b | databas|e files;|
|00005230| 20 63 68 61 6e 67 65 20 | 74 68 65 6d 0a 66 6f 72 | change |them.for|
|00005240| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 2c 20 61 73 | your sy|stem, as|
|00005250| 20 61 70 70 72 6f 70 72 | 69 61 74 65 2e 0a 0a 20 | appropr|iate... |
|00005260| 20 20 20 4e 4f 54 45 3a | 20 57 65 20 2a 73 74 72 | NOTE:| We *str|
|00005270| 6f 6e 67 6c 79 2a 20 75 | 72 67 65 20 79 6f 75 20 |ongly* u|rge you |
|00005280| 74 6f 20 6c 6f 63 61 74 | 65 20 74 68 65 20 54 72 |to locat|e the Tr|
|00005290| 69 70 77 69 72 65 0a 63 | 6f 6e 66 69 67 75 72 61 |ipwire.c|onfigura|
|000052a0| 74 69 6f 6e 20 66 69 6c | 65 73 20 6f 6e 20 61 20 |tion fil|es on a |
|000052b0| 64 69 73 6b 20 74 68 61 | 74 20 63 61 6e 20 62 65 |disk tha|t can be|
|000052c0| 20 6d 61 64 65 20 72 65 | 61 64 2d 6f 6e 6c 79 20 | made re|ad-only |
|000052d0| 77 69 74 68 20 61 0a 68 | 61 72 64 77 61 72 65 20 |with a.h|ardware |
|000052e0| 73 65 74 74 69 6e 67 2e | 20 20 54 68 69 73 20 77 |setting.| This w|
|000052f0| 69 6c 6c 20 70 72 65 76 | 65 6e 74 20 74 68 65 20 |ill prev|ent the |
|00005300| 66 69 6c 65 73 20 66 72 | 6f 6d 20 62 65 69 6e 67 |files fr|om being|
|00005310| 20 61 6c 74 65 72 65 64 | 0a 62 79 20 61 6e 20 61 | altered|.by an a|
|00005320| 74 74 61 63 6b 65 72 2e | 20 20 54 68 65 20 72 75 |ttacker.| The ru|
|00005330| 6e 2d 74 69 6d 65 20 76 | 65 72 73 69 6f 6e 20 6f |n-time v|ersion o|
|00005340| 66 20 54 72 69 70 77 69 | 72 65 20 73 68 6f 75 6c |f Tripwi|re shoul|
|00005350| 64 20 62 65 0a 6c 6f 63 | 61 74 65 64 20 69 6e 20 |d be.loc|ated in |
|00005360| 74 68 65 20 73 61 6d 65 | 20 70 6c 61 63 65 2e 20 |the same| place. |
|00005370| 20 49 66 20 79 6f 75 20 | 61 72 65 20 75 6e 61 62 | If you |are unab|
|00005380| 6c 65 20 74 6f 20 6d 61 | 72 6b 20 61 20 64 69 73 |le to ma|rk a dis|
|00005390| 6b 20 28 6f 72 0a 64 69 | 73 6b 65 74 74 65 29 20 |k (or.di|skette) |
|000053a0| 61 73 20 72 65 61 64 2d | 6f 6e 6c 79 2c 20 79 6f |as read-|only, yo|
|000053b0| 75 20 6d 69 67 68 74 20 | 61 6c 73 6f 20 63 6f 6e |u might |also con|
|000053c0| 73 69 64 65 72 20 70 75 | 74 74 69 6e 67 20 69 74 |sider pu|tting it|
|000053d0| 20 6f 6e 20 61 0a 72 65 | 6d 6f 74 65 20 70 61 72 | on a.re|mote par|
|000053e0| 74 69 74 69 6f 6e 20 6f | 66 20 61 20 6d 6f 72 65 |tition o|f a more|
|000053f0| 20 73 65 63 75 72 65 20 | 6d 61 63 68 69 6e 65 2c | secure |machine,|
|00005400| 20 61 6e 64 20 69 6d 70 | 6f 72 74 20 69 74 0a 72 | and imp|ort it.r|
|00005410| 65 61 64 2d 6f 6e 6c 79 | 2e 20 20 53 65 65 20 74 |ead-only|. See t|
|00005420| 68 65 20 64 65 73 69 67 | 6e 20 64 6f 63 75 6d 65 |he desig|n docume|
|00005430| 6e 74 20 66 6f 72 20 74 | 68 65 20 72 61 74 69 6f |nt for t|he ratio|
|00005440| 6e 61 6c 65 20 62 65 68 | 69 6e 64 20 74 68 69 73 |nale beh|ind this|
|00005450| 0a 6e 6f 74 65 20 69 66 | 20 74 68 65 20 63 6f 6e |.note if| the con|
|00005460| 63 65 70 74 20 69 73 20 | 6e 6f 74 20 6f 62 76 69 |cept is |not obvi|
|00005470| 6f 75 73 2e 0a 0a 20 20 | 20 20 4c 61 73 74 2c 20 |ous... | Last, |
|00005480| 6c 6f 6f 6b 20 69 6e 20 | 74 68 65 20 27 2e 2f 63 |look in |the './c|
|00005490| 6f 6e 66 69 67 73 27 20 | 64 69 72 65 63 74 6f 72 |onfigs' |director|
|000054a0| 79 20 61 67 61 69 6e 20 | 74 6f 20 66 69 6e 64 20 |y again |to find |
|000054b0| 61 20 74 77 2e 63 6f 6e | 66 69 67 0a 66 69 6c 65 |a tw.con|fig.file|
|000054c0| 20 74 68 61 74 20 6d 61 | 74 63 68 65 73 20 79 6f | that ma|tches yo|
|000054d0| 75 72 20 6f 70 65 72 61 | 74 69 6e 67 20 73 79 73 |ur opera|ting sys|
|000054e0| 74 65 6d 2e 20 20 54 68 | 65 73 65 20 66 69 6c 65 |tem. Th|ese file|
|000054f0| 73 20 77 65 72 65 0a 63 | 75 73 74 6f 6d 2d 74 61 |s were.c|ustom-ta|
|00005500| 69 6c 6f 72 65 64 20 74 | 6f 20 6d 61 74 63 68 20 |ilored t|o match |
|00005510| 74 68 65 20 66 69 6c 65 | 20 6c 61 79 6f 75 74 73 |the file| layouts|
|00005520| 20 6f 66 20 76 61 72 69 | 6f 75 73 20 76 65 6e 64 | of vari|ous vend|
|00005530| 6f 72 20 73 75 70 70 6c | 69 65 64 0a 6f 70 65 72 |or suppl|ied.oper|
|00005540| 61 74 69 6e 67 20 73 79 | 73 74 65 6d 2e 20 20 49 |ating sy|stem. I|
|00005550| 66 20 6e 6f 20 66 69 6c | 65 20 69 6e 20 74 68 69 |f no fil|e in thi|
|00005560| 73 20 73 75 62 64 69 72 | 65 63 74 6f 72 79 20 6d |s subdir|ectory m|
|00005570| 61 74 63 68 65 73 20 79 | 6f 75 72 0a 73 79 73 74 |atches y|our.syst|
|00005580| 65 6d 2c 20 63 68 6f 6f | 73 65 20 74 68 65 20 6f |em, choo|se the o|
|00005590| 6e 65 20 74 68 61 74 20 | 69 73 20 63 6c 6f 73 65 |ne that |is close|
|000055a0| 73 74 20 69 6e 20 6e 61 | 74 75 72 65 20 28 65 2e |st in na|ture (e.|
|000055b0| 67 2e 2c 20 42 53 44 34 | 2e 33 20 6f 72 0a 53 79 |g., BSD4|.3 or.Sy|
|000055c0| 73 56 2e 34 29 2e 20 20 | 45 64 69 74 20 74 68 69 |sV.4). |Edit thi|
|000055d0| 73 20 66 69 6c 65 20 74 | 6f 20 69 6e 63 6c 75 64 |s file t|o includ|
|000055e0| 65 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 66 69 6c |e additi|onal fil|
|000055f0| 65 73 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 0a 6d |es you w|ant to.m|
|00005600| 6f 6e 69 74 6f 72 20 28 | 65 2e 67 2e 2c 20 6c 6f |onitor (|e.g., lo|
|00005610| 63 61 6c 20 62 69 6e 73 | 20 61 6e 64 20 63 72 69 |cal bins| and cri|
|00005620| 74 69 63 61 6c 20 64 61 | 74 61 62 61 73 65 73 29 |tical da|tabases)|
|00005630| 2c 20 74 6f 20 63 6f 72 | 72 65 63 74 20 70 61 74 |, to cor|rect pat|
|00005640| 68 73 20 69 66 0a 79 6f | 75 20 68 61 76 65 20 6d |hs if.yo|u have m|
|00005650| 6f 76 65 64 20 74 68 69 | 6e 67 73 20 6f 72 20 69 |oved thi|ngs or i|
|00005660| 66 20 74 68 65 79 20 61 | 72 65 20 6d 6f 75 6e 74 |f they a|re mount|
|00005670| 65 64 20 66 72 6f 6d 20 | 61 20 72 65 6d 6f 74 65 |ed from |a remote|
|00005680| 20 6c 6f 63 61 74 69 6f | 6e 0a 28 63 68 65 63 6b | locatio|n.(check|
|00005690| 20 74 68 65 6d 20 6f 6e | 6c 79 20 6f 6e 20 74 68 | them on|ly on th|
|000056a0| 65 20 73 65 72 76 65 72 | 21 29 2c 20 61 6e 64 20 |e server|!), and |
|000056b0| 74 6f 20 65 78 63 6c 75 | 64 65 20 6c 6f 63 61 6c |to exclu|de local|
|000056c0| 6c 79 2d 61 63 74 69 76 | 65 20 66 69 6c 65 73 0a |ly-activ|e files.|
|000056d0| 66 72 6f 6d 20 74 68 65 | 20 63 68 65 63 6b 2e 20 |from the| check. |
|000056e0| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 70 72 6f 62 | You sho|uld prob|
|000056f0| 61 62 6c 79 20 61 64 64 | 20 74 68 65 20 54 72 69 |ably add| the Tri|
|00005700| 70 77 69 72 65 20 62 69 | 6e 61 72 79 20 69 74 73 |pwire bi|nary its|
|00005710| 65 6c 66 20 74 6f 0a 74 | 68 69 73 20 66 69 6c 65 |elf to.t|his file|
|00005720| 2e 20 20 53 65 65 20 74 | 68 65 20 6e 65 78 74 20 |. See t|he next |
|00005730| 73 65 63 74 69 6f 6e 20 | 66 6f 72 20 66 75 72 74 |section |for furt|
|00005740| 68 65 72 20 64 65 74 61 | 69 6c 73 2e 0a 0a 20 20 |her deta|ils... |
|00005750| 20 20 41 66 74 65 72 20 | 79 6f 75 20 68 61 76 65 | After |you have|
|00005760| 20 63 75 73 74 6f 6d 69 | 7a 65 64 20 79 6f 75 72 | customi|zed your|
|00005770| 20 74 77 2e 63 6f 6e 66 | 69 67 20 66 69 6c 65 2c | tw.conf|ig file,|
|00005780| 20 63 6f 70 79 20 69 74 | 20 74 6f 20 74 68 65 0a | copy it| to the.|
|00005790| 6c 6f 63 61 74 69 6f 6e | 20 74 68 61 74 20 79 6f |location| that yo|
|000057a0| 75 20 73 70 65 63 69 66 | 69 65 64 20 69 6e 20 79 |u specif|ied in y|
|000057b0| 6f 75 72 20 63 6f 6e 66 | 69 67 2e 68 20 66 69 6c |our conf|ig.h fil|
|000057c0| 65 2e 0a 0a 20 20 20 20 | 4e 65 78 74 2c 20 73 69 |e... |Next, si|
|000057d0| 6d 70 6c 79 20 74 79 70 | 65 20 27 6d 61 6b 65 27 |mply typ|e 'make'|
|000057e0| 20 61 74 20 74 68 65 20 | 74 6f 70 20 6c 65 76 65 | at the |top leve|
|000057f0| 6c 2e 20 20 4e 6f 74 65 | 20 74 68 61 74 20 61 6c |l. Note| that al|
|00005800| 6c 0a 4d 61 6b 65 66 69 | 6c 65 73 20 69 6e 20 74 |l.Makefi|les in t|
|00005810| 68 65 20 73 75 62 64 69 | 72 65 63 74 6f 72 69 65 |he subdi|rectorie|
|00005820| 73 20 61 72 65 20 64 72 | 69 76 65 6e 20 62 79 20 |s are dr|iven by |
|00005830| 74 68 65 20 74 6f 70 2d | 6c 65 76 65 6c 20 4d 61 |the top-|level Ma|
|00005840| 6b 65 66 69 6c 65 2e 0a | 28 69 2e 65 2e 2c 20 74 |kefile..|(i.e., t|
|00005850| 79 70 69 6e 67 20 27 6d | 61 6b 65 27 20 69 6e 20 |yping 'm|ake' in |
|00005860| 74 68 65 20 2e 2f 73 72 | 63 20 64 69 72 65 63 74 |the ./sr|c direct|
|00005870| 6f 72 79 20 77 69 6c 6c | 20 70 72 6f 62 61 62 6c |ory will| probabl|
|00005880| 79 20 6e 6f 74 20 77 6f | 72 6b 2e 29 0a 0a 32 2e |y not wo|rk.)..2.|
|00005890| 31 2e 20 20 43 6f 6d 6d | 6f 6e 20 54 72 69 70 77 |1. Comm|on Tripw|
|000058a0| 69 72 65 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 20 |ire comp|ilation |
|000058b0| 70 72 6f 62 6c 65 6d 73 | 0a 3d 3d 3d 3d 3d 3d 3d |problems|.=======|
|000058c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000058d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000058e0| 3d 3d 3d 0a 0a 20 20 20 | 20 49 66 20 6e 6f 20 66 |===.. | If no f|
|000058f0| 69 6c 65 20 69 6e 20 74 | 68 69 73 20 73 75 62 64 |ile in t|his subd|
|00005900| 69 72 65 63 74 6f 72 79 | 20 6d 61 74 63 68 65 73 |irectory| matches|
|00005910| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 2c 20 63 68 | your sy|stem, ch|
|00005920| 6f 6f 73 65 0a 74 68 65 | 20 6f 6e 65 20 74 68 61 |oose.the| one tha|
|00005930| 74 20 69 73 20 63 6c 6f | 73 65 73 74 20 69 6e 20 |t is clo|sest in |
|00005940| 6e 61 74 75 72 65 20 28 | 65 2e 67 2e 2c 20 42 53 |nature (|e.g., BS|
|00005950| 44 34 2e 33 20 6f 72 20 | 53 79 73 56 2e 34 29 2e |D4.3 or |SysV.4).|
|00005960| 20 20 45 64 69 74 0a 74 | 68 69 73 20 66 69 6c 65 | Edit.t|his file|
|00005970| 20 74 6f 20 69 6e 63 6c | 75 64 65 20 61 64 64 69 | to incl|ude addi|
|00005980| 74 69 6f 6e 61 6c 20 66 | 69 6c 65 73 20 79 6f 75 |tional f|iles you|
|00005990| 20 77 61 6e 74 20 74 6f | 20 6d 6f 6e 69 74 6f 72 | want to| monitor|
|000059a0| 20 28 65 2e 67 2e 2c 0a | 6c 6f 63 61 6c 20 62 69 | (e.g.,.|local bi|
|000059b0| 6e 73 20 61 6e 64 20 63 | 72 69 74 69 63 61 6c 20 |ns and c|ritical |
|000059c0| 64 61 74 61 62 61 73 65 | 73 29 2c 20 74 6f 20 63 |database|s), to c|
|000059d0| 6f 72 72 65 63 74 20 70 | 61 74 68 73 20 69 66 20 |orrect p|aths if |
|000059e0| 79 6f 75 20 68 61 76 65 | 0a 6d 6f 76 65 64 20 74 |you have|.moved t|
|000059f0| 68 69 6e 67 73 20 6f 72 | 20 69 66 20 74 68 65 79 |hings or| if they|
|00005a00| 20 61 72 65 20 6d 6f 75 | 6e 74 65 64 20 66 72 6f | are mou|nted fro|
|00005a10| 6d 20 61 20 72 65 6d 6f | 74 65 20 6c 6f 63 61 74 |m a remo|te locat|
|00005a20| 69 6f 6e 20 28 63 68 65 | 63 6b 0a 74 68 65 6d 20 |ion (che|ck.them |
|00005a30| 6f 6e 6c 79 20 6f 6e 20 | 74 68 65 20 73 65 72 76 |only on |the serv|
|00005a40| 65 72 21 29 2c 20 61 6e | 64 20 74 6f 20 65 78 63 |er!), an|d to exc|
|00005a50| 6c 75 64 65 20 6c 6f 63 | 61 6c 6c 79 2d 61 63 74 |lude loc|ally-act|
|00005a60| 69 76 65 20 66 69 6c 65 | 73 0a 66 72 6f 6d 20 74 |ive file|s.from t|
|00005a70| 68 65 20 63 68 65 63 6b | 2e 20 20 59 6f 75 20 73 |he check|. You s|
|00005a80| 68 6f 75 6c 64 20 70 72 | 6f 62 61 62 6c 79 20 61 |hould pr|obably a|
|00005a90| 64 64 20 74 68 65 20 54 | 72 69 70 77 69 72 65 20 |dd the T|ripwire |
|00005aa0| 62 69 6e 61 72 79 0a 69 | 74 73 65 6c 66 20 74 6f |binary.i|tself to|
|00005ab0| 20 74 68 69 73 20 66 69 | 6c 65 2e 20 20 53 65 65 | this fi|le. See|
|00005ac0| 20 74 68 65 20 6e 65 78 | 74 20 73 65 63 74 69 6f | the nex|t sectio|
|00005ad0| 6e 20 66 6f 72 20 66 75 | 72 74 68 65 72 20 64 65 |n for fu|rther de|
|00005ae0| 74 61 69 6c 73 2e 0a 0a | 20 20 20 20 41 66 74 65 |tails...| Afte|
|00005af0| 72 20 79 6f 75 20 68 61 | 76 65 20 63 75 73 74 6f |r you ha|ve custo|
|00005b00| 6d 69 7a 65 64 20 79 6f | 75 72 20 74 77 2e 63 6f |mized yo|ur tw.co|
|00005b10| 6e 66 69 67 20 66 69 6c | 65 2c 20 63 6f 70 79 20 |nfig fil|e, copy |
|00005b20| 69 74 20 74 6f 20 74 68 | 65 0a 6c 6f 63 61 74 69 |it to th|e.locati|
|00005b30| 6f 6e 20 74 68 61 74 20 | 79 6f 75 20 73 70 65 63 |on that |you spec|
|00005b40| 69 66 69 65 64 20 69 6e | 20 79 6f 75 72 20 63 6f |ified in| your co|
|00005b50| 6e 66 69 67 2e 68 20 66 | 69 6c 65 2e 0a 0a 20 20 |nfig.h f|ile... |
|00005b60| 20 20 4e 65 78 74 2c 20 | 73 69 6d 70 6c 79 20 74 | Next, |simply t|
|00005b70| 79 70 65 20 27 6d 61 6b | 65 27 20 61 74 20 74 68 |ype 'mak|e' at th|
|00005b80| 65 20 74 6f 70 20 6c 65 | 76 65 6c 2e 20 20 4e 6f |e top le|vel. No|
|00005b90| 74 65 20 74 68 61 74 20 | 61 6c 6c 0a 4d 61 6b 65 |te that |all.Make|
|00005ba0| 66 69 6c 65 73 20 69 6e | 20 74 68 65 20 73 75 62 |files in| the sub|
|00005bb0| 64 69 72 65 63 74 6f 72 | 69 65 73 20 61 72 65 20 |director|ies are |
|00005bc0| 64 72 69 76 65 6e 20 62 | 79 20 74 68 65 20 74 6f |driven b|y the to|
|00005bd0| 70 2d 6c 65 76 65 6c 0a | 4d 61 6b 65 66 69 6c 65 |p-level.|Makefile|
|00005be0| 2e 20 20 28 69 2e 65 2e | 2c 20 74 79 70 69 6e 67 |. (i.e.|, typing|
|00005bf0| 20 27 6d 61 6b 65 27 20 | 69 6e 20 74 68 65 20 2e | 'make' |in the .|
|00005c00| 2f 73 72 63 20 64 69 72 | 65 63 74 6f 72 79 20 77 |/src dir|ectory w|
|00005c10| 69 6c 6c 20 6e 6f 74 0a | 77 6f 72 6b 2e 29 0a 0a |ill not.|work.)..|
|00005c20| 32 2e 31 2e 20 20 43 6f | 6d 6d 6f 6e 20 54 72 69 |2.1. Co|mmon Tri|
|00005c30| 70 77 69 72 65 20 63 6f | 6d 70 69 6c 61 74 69 6f |pwire co|mpilatio|
|00005c40| 6e 20 70 72 6f 62 6c 65 | 6d 73 0a 3d 3d 3d 3d 3d |n proble|ms.=====|
|00005c50| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005c60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005c70| 3d 3d 3d 3d 3d 0a 0a 20 | 20 20 20 54 72 69 70 77 |=====.. | Tripw|
|00005c80| 69 72 65 20 77 61 73 20 | 6f 72 69 67 69 6e 61 6c |ire was |original|
|00005c90| 6c 79 20 77 72 69 74 74 | 65 6e 20 75 73 69 6e 67 |ly writt|en using|
|00005ca0| 20 41 4e 53 49 20 43 2e | 20 20 48 6f 77 65 76 65 | ANSI C.| Howeve|
|00005cb0| 72 2c 0a 54 72 69 70 77 | 69 72 65 20 6e 6f 77 20 |r,.Tripw|ire now |
|00005cc0| 63 6f 6d 70 69 6c 65 73 | 20 77 69 74 68 20 4b 26 |compiles| with K&|
|00005cd0| 52 2c 20 74 6f 6f 2e 20 | 20 41 6c 6c 20 6f 66 20 |R, too. | All of |
|00005ce0| 74 68 65 20 70 72 6f 74 | 6f 74 79 70 65 73 0a 72 |the prot|otypes.r|
|00005cf0| 65 6d 61 69 6e 20 65 6d | 62 65 64 64 65 64 20 62 |emain em|bedded b|
|00005d00| 65 74 77 65 65 6e 20 22 | 23 69 66 64 65 66 20 5f |etween "|#ifdef _|
|00005d10| 5f 53 54 44 43 5f 5f 22 | 20 64 69 72 65 63 74 69 |_STDC__"| directi|
|00005d20| 76 65 73 2e 20 20 53 61 | 64 6c 79 2c 0a 63 6f 6d |ves. Sa|dly,.com|
|00005d30| 70 69 6c 69 6e 67 20 75 | 6e 64 65 72 20 41 4e 53 |piling u|nder ANS|
|00005d40| 49 20 69 73 20 73 6f 6d | 65 74 69 6d 65 73 20 6e |I is som|etimes n|
|00005d50| 6f 69 73 69 65 72 20 74 | 68 61 6e 20 77 69 74 68 |oisier t|han with|
|00005d60| 20 4b 26 52 2e 0a 54 68 | 65 72 65 66 6f 72 65 2c | K&R..Th|erefore,|
|00005d70| 20 67 6f 20 61 68 65 61 | 64 20 61 6e 64 20 63 6f | go ahea|d and co|
|00005d80| 6d 70 69 6c 65 20 77 69 | 74 68 20 4b 26 52 20 75 |mpile wi|th K&R u|
|00005d90| 6e 6c 65 73 73 20 72 65 | 6c 69 67 69 6f 6e 20 64 |nless re|ligion d|
|00005da0| 69 63 74 61 74 65 73 0a | 41 4e 53 49 2e 20 20 28 |ictates.|ANSI. (|
|00005db0| 54 68 65 20 63 6f 64 65 | 20 6c 69 6e 74 73 20 63 |The code| lints c|
|00005dc0| 6f 6d 70 6c 65 74 65 6c | 79 20 63 6c 65 61 6e 2c |ompletel|y clean,|
|00005dd0| 20 65 78 63 65 70 74 69 | 6e 67 20 74 68 65 20 6d | excepti|ng the m|
|00005de0| 61 6c 6c 6f 63 28 29 0a | 61 6e 64 20 65 78 69 74 |alloc().|and exit|
|00005df0| 28 29 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 73 |() retur|n values|
|00005e00| 2e 29 0a 0a 20 20 20 20 | 43 6f 6d 6d 6f 6e 20 63 |.).. |Common c|
|00005e10| 6f 6d 70 69 6c 61 74 69 | 6f 6e 20 74 72 6f 75 62 |ompilati|on troub|
|00005e20| 6c 65 2d 73 70 6f 74 73 | 20 61 72 65 20 74 68 65 |le-spots| are the|
|00005e30| 20 64 69 72 65 6e 74 28 | 53 35 29 2f 64 69 72 65 | dirent(|S5)/dire|
|00005e40| 63 74 28 42 53 44 29 20 | 0a 66 75 6e 6b 69 6e 65 |ct(BSD) |.funkine|
|00005e50| 73 73 20 61 6e 64 20 23 | 64 65 66 69 6e 65 73 20 |ss and #|defines |
|00005e60| 74 68 61 74 20 63 68 61 | 6e 67 65 64 20 66 6f 72 |that cha|nged for|
|00005e70| 20 50 4f 53 49 58 20 63 | 6f 6d 70 6c 69 61 6e 63 | POSIX c|omplianc|
|00005e80| 65 2e 0a 0a 32 2e 32 2e | 20 20 54 68 65 20 73 69 |e...2.2.| The si|
|00005e90| 67 66 65 74 63 68 20 75 | 74 69 6c 69 74 79 0a 3d |gfetch u|tility.=|
|00005ea0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005eb0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0a 0a 20 20 20 20 54 |========|=.. T|
|00005ec0| 68 65 20 73 69 67 66 65 | 74 63 68 20 75 74 69 6c |he sigfe|tch util|
|00005ed0| 69 74 79 20 69 73 20 70 | 72 6f 76 69 64 65 64 20 |ity is p|rovided |
|00005ee0| 73 6f 20 75 73 65 72 73 | 20 63 61 6e 20 67 65 74 |so users| can get|
|00005ef0| 20 73 69 67 6e 61 74 75 | 72 65 73 0a 6f 66 20 66 | signatu|res.of f|
|00005f00| 69 6c 65 73 20 77 69 74 | 68 6f 75 74 20 68 61 76 |iles wit|hout hav|
|00005f10| 69 6e 67 20 74 6f 20 72 | 75 6e 20 54 72 69 70 77 |ing to r|un Tripw|
|00005f20| 69 72 65 2e 20 20 54 68 | 65 20 73 79 6e 74 61 78 |ire. Th|e syntax|
|00005f30| 20 6f 66 20 73 69 67 66 | 65 74 63 68 0a 69 73 20 | of sigf|etch.is |
|00005f40| 73 69 6d 70 6c 65 2e 20 | 20 0a 0a 09 73 69 67 66 |simple. | ...sigf|
|00005f50| 65 74 63 68 20 5b 2d 30 | 31 32 33 34 35 36 37 38 |etch [-0|12345678|
|00005f60| 39 61 71 76 5d 20 5b 20 | 66 69 6c 65 20 2e 2e 2e |9aqv] [ |file ...|
|00005f70| 20 5d 0a 0a 20 20 20 20 | 42 79 20 64 65 66 61 75 | ].. |By defau|
|00005f80| 6c 74 2c 20 73 69 67 66 | 65 74 63 68 20 70 72 69 |lt, sigf|etch pri|
|00005f90| 6e 74 73 20 6f 75 74 20 | 61 6c 6c 20 74 65 6e 20 |nts out |all ten |
|00005fa0| 73 69 67 6e 61 74 75 72 | 65 73 2e 20 20 48 6f 77 |signatur|es. How|
|00005fb0| 65 76 65 72 2c 0a 74 68 | 65 20 73 69 67 6e 61 74 |ever,.th|e signat|
|00005fc0| 75 72 65 73 20 63 61 6e | 20 62 65 20 70 72 69 6e |ures can| be prin|
|00005fd0| 74 65 64 20 73 65 6c 65 | 63 74 69 76 65 6c 79 20 |ted sele|ctively |
|00005fe0| 62 79 20 73 70 65 63 69 | 66 79 69 6e 67 20 74 68 |by speci|fying th|
|00005ff0| 65 0a 73 69 67 6e 61 74 | 75 72 65 20 6e 75 6d 62 |e.signat|ure numb|
|00006000| 65 72 20 6f 6e 20 74 68 | 65 20 63 6f 6d 6d 61 6e |er on th|e comman|
|00006010| 64 20 6c 69 6e 65 2e 0a | 0a 33 2e 30 2e 20 20 47 |d line..|.3.0. G|
|00006020| 65 74 74 69 6e 67 20 54 | 72 69 70 77 69 72 65 20 |etting T|ripwire |
|00006030| 75 70 20 61 6e 64 20 72 | 75 6e 6e 69 6e 67 0a 3d |up and r|unning.=|
|00006040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00006060| 3d 3d 3d 3d 0a 0a 20 20 | 20 20 54 72 69 70 77 69 |====.. | Tripwi|
|00006070| 72 65 20 72 75 6e 73 20 | 69 6e 20 65 69 74 68 65 |re runs |in eithe|
|00006080| 72 20 6f 66 20 74 77 6f | 20 6d 6f 64 65 73 3a 20 |r of two| modes: |
|00006090| 44 61 74 61 62 61 73 65 | 20 47 65 6e 65 72 61 74 |Database| Generat|
|000060a0| 69 6f 6e 0a 6d 6f 64 65 | 20 6f 72 20 49 6e 74 65 |ion.mode| or Inte|
|000060b0| 67 72 69 74 79 20 43 68 | 65 63 6b 69 6e 67 20 6d |grity Ch|ecking m|
|000060c0| 6f 64 65 2e 20 20 49 6e | 20 6f 72 64 65 72 20 74 |ode. In| order t|
|000060d0| 6f 20 72 75 6e 20 49 6e | 74 65 67 72 69 74 79 0a |o run In|tegrity.|
|000060e0| 43 68 65 63 6b 69 6e 67 | 2c 20 54 72 69 70 77 69 |Checking|, Tripwi|
|000060f0| 72 65 20 6d 75 73 74 20 | 68 61 76 65 20 61 20 64 |re must |have a d|
|00006100| 61 74 61 62 61 73 65 20 | 74 6f 20 63 6f 6d 70 61 |atabase |to compa|
|00006110| 72 65 20 61 67 61 69 6e | 73 74 2e 20 20 54 6f 0a |re again|st. To.|
|00006120| 64 6f 20 74 68 61 74 2c | 20 79 6f 75 20 6d 75 73 |do that,| you mus|
|00006130| 74 20 66 69 72 73 74 20 | 73 70 65 63 69 66 79 20 |t first |specify |
|00006140| 74 68 65 20 73 65 74 20 | 6f 66 20 66 69 6c 65 73 |the set |of files|
|00006150| 20 66 6f 72 20 54 72 69 | 70 77 69 72 65 20 74 6f | for Tri|pwire to|
|00006160| 0a 6d 6f 6e 69 74 6f 72 | 2e 20 20 54 68 69 73 20 |.monitor|. This |
|00006170| 6c 69 73 74 20 69 73 20 | 73 74 6f 72 65 64 20 69 |list is |stored i|
|00006180| 6e 20 27 74 77 2e 63 6f | 6e 66 69 67 27 2e 0a 0a |n 'tw.co|nfig'...|
|00006190| 33 2e 31 2e 20 20 43 72 | 65 61 74 69 6e 67 20 79 |3.1. Cr|eating y|
|000061a0| 6f 75 72 20 74 77 2e 63 | 6f 6e 66 69 67 20 66 69 |our tw.c|onfig fi|
|000061b0| 6c 65 0a 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |le.=====|========|
|000061c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000061d0| 3d 3d 3d 3d 3d 0a 0a 20 | 20 20 20 45 64 69 74 20 |=====.. | Edit |
|000061e0| 79 6f 75 72 20 27 74 77 | 2e 63 6f 6e 66 69 67 27 |your 'tw|.config'|
|000061f0| 20 66 69 6c 65 2c 20 6f | 72 20 77 68 61 74 65 76 | file, o|r whatev|
|00006200| 65 72 20 66 69 6c 65 6e | 61 6d 65 20 79 6f 75 20 |er filen|ame you |
|00006210| 64 65 66 69 6e 65 64 20 | 66 6f 72 0a 74 68 65 20 |defined |for.the |
|00006220| 54 72 69 70 77 69 72 65 | 20 63 6f 6e 66 69 67 20 |Tripwire| config |
|00006230| 66 69 6c 65 2c 20 61 6e | 64 20 61 64 64 20 61 6c |file, an|d add al|
|00006240| 6c 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 69 65 |l the di|rectorie|
|00006250| 73 20 74 68 61 74 20 63 | 6f 6e 74 61 69 6e 0a 66 |s that c|ontain.f|
|00006260| 69 6c 65 73 20 74 68 61 | 74 20 79 6f 75 20 77 61 |iles tha|t you wa|
|00006270| 6e 74 20 6d 6f 6e 69 74 | 6f 72 65 64 2e 20 20 54 |nt monit|ored. T|
|00006280| 68 65 20 66 6f 72 6d 61 | 74 20 6f 66 20 74 68 65 |he forma|t of the|
|00006290| 20 63 6f 6e 66 69 67 20 | 66 69 6c 65 20 69 73 0a | config |file is.|
|000062a0| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 69 74 73 |describe|d in its|
|000062b0| 20 68 65 61 64 65 72 20 | 61 6e 64 20 69 6e 20 74 | header |and in t|
|000062c0| 68 65 20 6d 61 6e 20 70 | 61 67 65 2e 20 20 50 61 |he man p|age. Pa|
|000062d0| 79 20 65 73 70 65 63 69 | 61 6c 6c 79 20 63 6c 6f |y especi|ally clo|
|000062e0| 73 65 0a 61 74 74 65 6e | 74 69 6f 6e 20 74 6f 20 |se.atten|tion to |
|000062f0| 74 68 65 20 69 67 6e 6f | 72 65 2d 66 6c 61 67 73 |the igno|re-flags|
|00006300| 20 61 6e 64 20 6f 6d 69 | 74 2d 6c 69 73 74 73 2c | and omi|t-lists,|
|00006310| 20 77 68 69 63 68 20 63 | 61 6e 20 73 69 67 6e 69 | which c|an signi|
|00006320| 66 69 63 61 6e 74 6c 79 | 0a 72 65 64 75 63 65 20 |ficantly|.reduce |
|00006330| 74 68 65 20 61 6d 6f 75 | 6e 74 20 6f 66 20 75 6e |the amou|nt of un|
|00006340| 69 6e 74 65 72 65 73 74 | 69 6e 67 20 6f 75 74 70 |interest|ing outp|
|00006350| 75 74 20 67 65 6e 65 72 | 61 74 65 64 20 62 79 20 |ut gener|ated by |
|00006360| 54 72 69 70 77 69 72 65 | 2e 20 20 46 6f 72 0a 65 |Tripwire|. For.e|
|00006370| 78 61 6d 70 6c 65 2c 20 | 79 6f 75 20 77 69 6c 6c |xample, |you will|
|00006380| 20 70 72 6f 62 61 62 6c | 79 20 77 61 6e 74 20 74 | probabl|y want t|
|00006390| 6f 20 6f 6d 69 74 20 66 | 69 6c 65 73 20 6c 69 6b |o omit f|iles lik|
|000063a0| 65 20 6d 6f 75 6e 74 20 | 74 61 62 6c 65 73 20 74 |e mount |tables t|
|000063b0| 68 61 74 0a 61 72 65 20 | 63 6f 6e 73 74 61 6e 74 |hat.are |constant|
|000063c0| 6c 79 20 63 68 61 6e 67 | 65 64 20 62 79 20 74 68 |ly chang|ed by th|
|000063d0| 65 20 6f 70 65 72 61 74 | 69 6e 67 20 73 79 73 74 |e operat|ing syst|
|000063e0| 65 6d 2e 0a 0a 20 20 20 | 20 4e 65 78 74 2c 20 72 |em... | Next, r|
|000063f0| 75 6e 20 54 72 69 70 77 | 69 72 65 20 77 69 74 68 |un Tripw|ire with|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.